diff --git a/platform/inspect/src/com/intellij/codeInspection/InspectionApplicationBase.java b/platform/inspect/src/com/intellij/codeInspection/InspectionApplicationBase.java index b73b20e4c53c..e785bf5ae7d8 100644 --- a/platform/inspect/src/com/intellij/codeInspection/InspectionApplicationBase.java +++ b/platform/inspect/src/com/intellij/codeInspection/InspectionApplicationBase.java @@ -218,7 +218,7 @@ public class InspectionApplicationBase implements CommandLineInspectionProgressR runAnalysisOnScope(projectPath, parentDisposable, project, myInspectionProfile, scope); } - protected @Nullable Project openProject(@NotNull Path projectPath, @NotNull Disposable parentDisposable) + private final @Nullable Project openProject(@NotNull Path projectPath, @NotNull Disposable parentDisposable) throws InterruptedException, ExecutionException { VirtualFile vfsProject = LocalFileSystem.getInstance().refreshAndFindFileByPath( FileUtil.toSystemIndependentName(projectPath.toString())); @@ -279,7 +279,7 @@ public class InspectionApplicationBase implements CommandLineInspectionProgressR return new AnalysisScope(scope, project); } - public @Nullable SearchScope getSearchScope(@NotNull Project project) throws ExecutionException, InterruptedException { + private SearchScope getSearchScope(@NotNull Project project) throws ExecutionException, InterruptedException { if (myAnalyzeChanges) { return getSearchScopeFromChangedFiles(project); @@ -437,7 +437,7 @@ public class InspectionApplicationBase implements CommandLineInspectionProgressR runAnalysis(project, projectPath, inspectionProfile, scope, reportConverter, resultsDataPath); } - public void configureProject(@NotNull Path projectPath, @NotNull Project project, @NotNull AnalysisScope scope) { + private void configureProject(@NotNull Path projectPath, @NotNull Project project, @NotNull AnalysisScope scope) { for (CommandLineInspectionProjectConfigurator configurator : CommandLineInspectionProjectConfigurator.EP_NAME.getIterable()) { CommandLineInspectionProjectConfigurator.ConfiguratorContext context = configuratorContext(projectPath, scope);