private CategoryPath getCurrentCategoryPath() {

		DataTypeNode dtNode = getSelectedDtNode();

		// the user may have picked a data type node or a category node
		if (dtNode != null) {
			return dtNode.getDataType().getCategoryPath();
		}

		CategoryNode categoryNode = getSelectedCategoryNode();
		if (categoryNode != null) {
			Category category = categoryNode.getCategory();
			return category.getCategoryPath();
		}

		return null;
	}
Signals that this chooser is intended to pick {@link CategoryPath}s instead of data types.
@param categorySelectionMode true to pick category paths
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/util/DataTypeChooserDialog.java