@Override
			public boolean isEnabledForContext(ActionContext context) {
				if (!super.isEnabledForContext(context)) {
					getMenuBarData().setMenuItemName(ACTION_NAME);
					return false;
				}
				return true;
			}
Display a pop-up dialog to run PostAnalysisValidator tests on the Program
that is currently open in the tool.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/validator/ValidateProgramPlugin.java