public void addAll(Collection<GhidraBundle> bundles) {
		writeLock.lock();
		try {
			for (GhidraBundle bundle : bundles) {
				bundlesByFile.put(bundle.getFile(), bundle);
				bundlesByLocation.put(bundle.getLocationIdentifier(), bundle);
			}
		}
		finally {
			writeLock.unlock();
		}
	}
Maps bundles in a collection.

<p>This is the same as calling {@link BundleMap#add(GhidraBundle)} for each bundle in {@code bundles}.

@param bundles a collection of GhidraBundle objects
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/osgi/BundleMap.java