boolean (@NotNull InspectionResultsView view, AnActionEvent e) { boolean enabled = view.areSettingsEnabled(); e.getPresentation().setDescription(enabled ? InspectionsBundle.message(ExperimentalUI.isNewUI() ? "inspection.action.edit.settings.new" : "inspection.action.edit.settings") : InspectionsBundle.message("inspection.tool.window.dialog.no.options", getSingleTool(view).getDisplayName())); return enabled; }