void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); presentation.setVisible(false); ServiceView selectedView = getSelectedView(e); presentation.setEnabled(selectedView != null && !(selectedView.getModel() instanceof ServiceViewModel.SingeServiceModel)); }