private static LoaderMap filterSupportedLoaders(LoaderMap loaderMap, Program program) {
		LoaderMap newMap = new LoaderMap();
		for (Loader loader : loaderMap.keySet()) {
			if (loader.supportsLoadIntoProgram(program)) {
				newMap.put(loader, loaderMap.get(loader));
			}
		}
		return newMap;
	}
Returns a new {@link LoaderMap} with loaders that do not support loading into the given
program filtered out

@param loaderMap The loaders and their corresponding load specifications
@param program The {@link Program} trying to be loaded in to
@return A new {@link LoaderMap} with loaders that do not support loading into the given
  program filtered out
Ghidra/Features/Base/src/main/java/ghidra/plugin/importer/AddToProgramDialog.java