private static CategoryMatchType getCategoryMatchType(CategoryPath categoryPath,
			String namespacePath) {
		if (namespacePath.length() == 0) {
			// root or unspecified namespace - prefer root category
			return categoryPath.isRoot() ? CategoryMatchType.PREFERRED
					: CategoryMatchType.SECONDARY;
		}
		String path = categoryPath.getPath();
		return path.endsWith(namespacePath) ? CategoryMatchType.PREFERRED : CategoryMatchType.NONE;
	}
Namespace category matcher.  Only those datatypes contained within a catgeory
whose trailing category path matches the specified namespacePath will be considered
a possible match.  If the namespacePath is empty array all category paths will 
be considered a match with preference given to the root category.
@param categoryPath datatype category path
@param namespacePath namespace path
@return {@link CategoryMatchType#PREFERRED} if namespace match found, {@link CategoryMatchType#SECONDARY}
if no namespace constraint specified else {@link CategoryMatchType#NONE} if namespace constraint not 
satisfied.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeUtilities.java