void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); if (!ExternalDiffTool.isEnabled()) { presentation.setEnabledAndVisible(false); return; } List<ShowInExternalToolAction> actions = getShowActions(); presentation.setEnabled(ExternalDiffTool.canShow(myActiveRequest)); presentation.setPerformGroup(actions.size() == 1); presentation.putClientProperty(ActionButton.HIDE_DROPDOWN_ICON, presentation.isPerformGroup()); presentation.setPopupGroup(true); presentation.setVisible(true); }