boolean (final Map<PsiFile, Set<PsiFile>> deps) { Set<PsiFile> files = deps.keySet(); for (PsiFile file : files) { if (file.getContainingDirectory() == getPsiDirectory()) { return true; } } return false; }