public static Map<String, GModule> findModules(Collection<ResourceFile> appRootDirs,
			Collection<ResourceFile> moduleRootDirs) {

		Predicate<GModule> allModules = module -> true;
		return findModules(appRootDirs, moduleRootDirs, allModules);
	}
Searches for modules in a given collection of module root directories.

@param appRootDirs The collection of application root directories associated with the given
  list of module root directories.
@param moduleRootDirs A collection of module root directories to search for modules in.
@return The discovered modules as a map (mapping module name to module for convenience).
Ghidra/Framework/Utility/src/main/java/utility/module/ModuleUtilities.java