AnalysisScope (@NotNull DataContext dataContext, @NotNull Project project, Boolean acceptNonProjectDirectories) { AnalysisScope scope = getFileScopeFromInspectionView(dataContext); if (scope != null) return scope; scope = getInspectionScopeImpl(dataContext, project, acceptNonProjectDirectories); return scope.getScopeType() != AnalysisScope.INVALID ? scope : null; }