@Override
		public boolean isAddToPopup(ActionContext context) {
			if (!(context.getContextObject() instanceof ToolButton)) {
				return false;
			}
			return isValidContext((ToolButton) context.getContextObject());
		}
builds the gui for the new front end
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/FrontEndPlugin.java