public static ResourceFile getModuleContainingResourceFile(ResourceFile file) {
		while (file != null) {
			if (ModuleUtilities.isModuleDirectory(file)) {
				return file;
			}
			file = file.getParentFile();
		}
		return null;
	}
If the Application was previously initialized with logging disabled, this method
may be used to perform delayed logging initialization.

@param logFile application log file, if null the default <i>application.log</i> will be stored
within the user's application settings directory
@param scriptLogFile scripting log file, if null the default <i>script.log</i> will be stored
within the user's application settings directory
@throws AssertException if Application has not yet been initialized, or logging
was previously configured for the application.
Ghidra/Framework/Generic/src/main/java/ghidra/framework/Application.java