void (@NotNull AnActionEvent e) { ServiceView selectedView = getSelectedView(e); e.getPresentation().setEnabled(selectedView != null); e.getPresentation().putClientProperty(ActionButton.HIDE_DROPDOWN_ICON, selectedView != null && getSelectedItems(e).size() == 1); e.getPresentation().setPerformGroup(true); }