public static CategoryPath getCategoryPath(Demangled namespace) {
		if (namespace == null) {
			return SWIFT_CATEGORY;
		}
		LinkedList<String> path = new LinkedList<>();
		while (namespace != null) {
			path.addFirst(namespace.getNamespaceName());
			namespace = namespace.getNamespace();
		}
		return new CategoryPath(SWIFT_CATEGORY, path);
	}
Gets a {@link CategoryPath} based on the given namespace

@param namespace The namespace
@return A {@link CategoryPath} based on the given namespace
Ghidra/Features/SwiftDemangler/src/main/java/ghidra/app/util/demangler/swift/datatypes/SwiftDataTypeUtils.java