static String convertResultType(TypeMirror type) {
		if (type.getKind().isPrimitive()) {
			return switch (type.getKind()) {
				case BOOLEAN -> "bool";
				case BYTE -> "int";
				case CHAR -> "str";
				case DOUBLE -> "float";
				case FLOAT -> "float";
				case INT -> "int";
				case LONG -> "int";
				case SHORT -> "int";
				default -> throw new RuntimeException("unexpected TypeKind " + type.getKind());
			};
		}

		if (type instanceof DeclaredType dt) {
			Element element = dt.asElement();
			if (element instanceof QualifiedNameable nameable) {
				return RESULT_CONVERSIONS.get(nameable.getQualifiedName().toString());
			}
		}
		return null;
	}
Converts the result type to the Python equivalent type if applicable

@param type the result type
@return the Python equivalent type or null if there is no equivalent type
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/PythonTypeStubMethod.java