void (@NotNull String toolShortName, @NotNull AnalysisScope customScope, @Nullable Module module, @Nullable PsiElement context, @NotNull Project project) { List<ModelScopeItem> items = BaseAnalysisActionDialog.standardItems(project, customScope, module, context); final BaseAnalysisActionDialog dlg = new BaseAnalysisActionDialog( CodeInsightBundle.message("specify.analysis.scope", InspectionsBundle.message("inspection.action.title")), CodeInsightBundle.message("analysis.scope.title", InspectionsBundle.message("inspection.action.noun")), project, items, AnalysisUIOptions.getInstance(project), true); if (!dlg.showAndGet()) { return; } customScope = dlg.getScope(customScope); InspectionToolWrapper<?, ?> wrapper = LocalInspectionToolWrapper.findTool2RunInBatch(project, context, toolShortName); LOG.assertTrue(wrapper != null, "Can't find tool with name = \"" + toolShortName + "\""); rerunInspection(wrapper, (InspectionManagerEx)InspectionManager.getInstance(project), customScope, context); }