private static boolean isNestedType(TypeElement element) {
		return element.getEnclosingElement() instanceof TypeElement;
	}
Checks if the provided type is a nested type

@param element the type element to check
@return true if the type is declared within another class
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/PythonTypeStubPackage.java