AnalysisScope (String extension, @NotNull Project project) { AnalysisScope scope; if (extension.isEmpty()) { scope = new AnalysisScope(project); } else { Collection<VirtualFile> files = getFiles(extension, project); if (files.isEmpty()) { return null; } scope = new AnalysisScope(project, getFiles(extension, project)); } return scope; }