private static int getPackageLevel(Class<?> classObject) {
		int dotCount = 0;
		Package package1 = classObject.getPackage();
		if (package1 == null) {
			return 0;
		}
		String packageName = package1.getName();
		for (int i = 0; i < packageName.length(); i++) {
			if (packageName.charAt(i) == '.') {
				dotCount++;
			}
		}
		return dotCount + 1;
	}
Returns a file that contains the given class. If the class is in a jar file, then
the jar file will be returned. If the file is in a .class file, then the directory
containing the package root will be returned (i.e. the "bin" directory).

@param classObject the class for which to get the location
@return the containing location
Ghidra/Framework/Utility/src/main/java/ghidra/util/SystemUtilities.java