private CategoryNode getSelectedCategoryNode() {
		TreePath[] selectionPath = tree.getSelectionPaths();
		if (selectionPath.length != 1) {
			return null;
		}

		GTreeNode node = (GTreeNode) selectionPath[0].getLastPathComponent();
		if (node instanceof CategoryNode catNode) {
			return catNode;
		}
		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