@Override
		public boolean isEnabledForContext(ActionContext context) {
			Object activeObj = context.getContextObject();

			// Only make action available for a single selected Module.
			if (activeObj != null && activeObj instanceof ProgramNode) {
				ProgramNode node = (ProgramNode) activeObj;

				if (node.getProgram() != null && node.isModule() &&
					node.getTree().getSelectionCount() == 1) {
					return true;
				}
			}
			return false;
		}
Determine if the Module Sort action should be visible within
the popup menu for the specified active object.
@param context the context
@return true if action should be made visible in popup menu.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/module/ModuleSortPlugin.java