@Override
			public boolean isEnabledForContext(ActionContext context) {
				if (!(context instanceof ProgramTreeActionContext ptac)) {
					return false;
				}

				if (ptac.hasFullNodeMultiSelection()) {
					return true;
				}

				if (ptac.hasSingleNodeSelection()) {
					return !ptac.isOnlyRootNodeSelected();
				}

				return false;
			}
Get the action for the tree.

@return PluginAction[]
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramTreeActionManager.java