private ResourceFile getModuleForClass(Class<?> clazz) {

		if (inSingleJarMode()) {
			String classFilePath = toPath(clazz.getName());
			GModule gModule = getModuleFromTreeMap(classFilePath);
			return gModule == null ? null : gModule.getModuleRoot();
		}

		// we're running from a binary installation...so get our jar and go up one
		File sourceLocationForClass = SystemUtilities.getSourceLocationForClass(clazz);
		if (sourceLocationForClass.isDirectory()) {
			String classFilePath = toPath(clazz.getName());
			String sourcePath = classFilePath.replace(".class", ".java");
			return findModuleForJavaSource(sourcePath);
		}

		// we have a jar file, which implies a installed deployment (not development)
		SystemUtilities.assertTrue(sourceLocationForClass.getName().endsWith(JAR_EXTENSION),
			"Expected jar file but got: " + sourceLocationForClass.getAbsolutePath());

		// our jar file resides in the module/lib
		File moduleDirectory = sourceLocationForClass.getParentFile().getParentFile();

		// our jar file resides in the module/build/lib (i.e., tests executed by Gradle)
		if ("build".equals(moduleDirectory.getName())) {
			moduleDirectory = moduleDirectory.getParentFile();
		}

		// return the module directory (lib's parent)
		return new ResourceFile(moduleDirectory);
	}
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