final Collection<TypeElement> getImportedTypes() {
		if (imports != null) {
			return imports;
		}
		imports = new HashSet<>();
		TypeMirror base = el.getSuperclass();
		if (base instanceof DeclaredType dt) {
			imports.add((TypeElement) dt.asElement());
		}
		for (TypeMirror iface : el.getInterfaces()) {
			addNeededTypes(imports, iface);
		}
		for (PythonTypeStubNestedType nested : getNestedTypes()) {
			imports.addAll(nested.getImportedTypes());
		}
		for (VariableElement field : getFields()) {
			addNeededTypes(imports, field.asType());
		}
		for (PythonTypeStubMethod method : getMethods()) {
			imports.addAll(method.getImportedTypes());
		}
		return imports;
	}
Gets a collection of all the imported types used by this type

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