void (@NotNull AnActionEvent e) { final InspectionResultsView view = getView(e); final boolean enabled = view != null && isEnabled(view, e); final Presentation presentation = e.getPresentation(); presentation.setEnabled(enabled); }