void (@NotNull AnActionEvent event) { Presentation presentation = event.getPresentation(); presentation.setEnabled( getInspectionScope(event.getDataContext()) != null || event.getData(CommonDataKeys.PROJECT) != null); }