boolean isSamePackage(TypeMirror type) {
		if (type instanceof DeclaredType dt) {
			return pkg.equals(getPackage(dt.asElement()));
		}
		return false;
	}
Checks if the provided type is in the same package as this element

@param type the type
@return true if the type is declared in the same package
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/PythonTypeStubElement.java