@Override
			public boolean isEnabledForContext(ActionContext context) {

				if (!super.isEnabledForContext(context)) {
					return false;
				}

				GTree gTree = getTree(context);
				List<GTreeNode> nodes = gTree.getSelectedNodes();
				return !nodes.isEmpty();
			}
Calling setSelectedPaths on GTree queues the selection for after any currently scheduled
tasks. This method sets the selected path immediately and does not wait for any scheduled
tasks.

@param path the path to select.
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/GTree.java