void (@NotNull AnalysisScope scope, InspectionResultsView newView) { int totalFiles = getStdJobDescriptors().BUILD_GRAPH.getTotalAmount(); // do not use invalidated scope var notification = NOTIFICATION_GROUP.createNotification(InspectionsBundle.message("inspection.no.problems.message", totalFiles, scope.getShortenName()), MessageType.INFO); if (!scope.isIncludeTestSource()) addRepeatWithTestsAction(scope, notification, () -> doInspections(scope)); notification.notify(getProject()); close(true); if (newView != null) { Disposer.dispose(newView); } }