public SymbolTreeNode getSelectedNode() {
		if (selectionPaths != null && selectionPaths.length == 1) {
			Object object = selectionPaths[0].getLastPathComponent();
			if (object instanceof SymbolTreeNode node) {
				return node;
			}
		}
		return null;
	}
Returns a symbol tree node if there is a single node selected and it is a symbol tree node.
Otherwise, null is returned.
@return the selected node or null
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/SymbolTreeActionContext.java