public ProgramNode getSingleSelectedNode() {
		TreePath[] paths = getSelectionPaths();
		if (paths == null || paths.length != 1) {
			return null;
		}
		return (ProgramNode) paths[0].getLastPathComponent();
	}
A context object for the {@link ProgramTreePlugin}.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramTreeActionContext.java