void (final DependenciesBuilder builders, final AnalysisScope scope) { final Map<PsiFile, Set<PsiFile>> dependencies = builders.getDependencies(); Set<PsiFile> excluded = new HashSet<>(); for (final PsiFile psiFile : dependencies.keySet()) { if (scope.contains(psiFile)) { excluded.add(psiFile); } } for ( final PsiFile psiFile : excluded ) { dependencies.remove(psiFile); } }