void (@NotNull AnalysisScope scope, boolean runGlobalToolsOnly, boolean isOfflineInspections, @NotNull Path outputDir, @NotNull List<? super Path> inspectionsResults) { cleanupTools(); setCurrentScope(scope); myOutputDir = outputDir; try { try { performInspectionsWithProgress(scope, runGlobalToolsOnly, isOfflineInspections); } finally { if (areToolsInitialized()) { exportResultsSmart(inspectionsResults, outputDir); } } } finally { myOutputDir = null; } }