final List<PythonTypeStubNestedType> getNestedTypes() {
		if (nestedTypes != null) {
			return nestedTypes;
		}
		nestedTypes = new ArrayList<>();
		for (Element child : el.getEnclosedElements()) {
			if (child instanceof TypeElement type) {
				nestedTypes.add(new PythonTypeStubNestedType(pkg, type));
			}
		}
		return nestedTypes;
	}
Gets a list of all the nested types declared in this type

@return a list of all nested types
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/PythonTypeStubType.java