public static CategoryPath getDataTypeCategoryPath(CategoryPath baseCategory,
			Namespace namespace) {
		List<String> categoryPathParts = new ArrayList<>();
		for (Namespace ns : NamespaceUtils.getNamespaceParts(namespace)) {
			if (ns instanceof Library) {
				break; // assume the Library is a root and no other categories are above it
			}
			categoryPathParts.add(ns.getName());
		}
		return categoryPathParts.isEmpty() ? baseCategory
				: new CategoryPath(baseCategory, categoryPathParts);
	}
Create a data type category path derived from the specified namespace and rooted from the
specified baseCategory

@param baseCategory category path from which to root the namespace-base path
@param namespace the namespace
@return namespace derived category path
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeUtilities.java