private static CategoryPath getPreferredRootNamespaceCategoryPath(
			DataTypeManager dataTypeManager) {
		if (!(dataTypeManager instanceof ProgramBasedDataTypeManager)) {
			return null;
		}
		ProgramBasedDataTypeManager pdtm = (ProgramBasedDataTypeManager) dataTypeManager;
		Program p = pdtm.getProgram();
		return p.getPreferredRootNamespaceCategoryPath();
	}
Score category path match.
@param path category path
@return path match type
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeUtilities.java