boolean (@NotNull final PsiPackage psiPackage, @NotNull GlobalSearchScope scope, @NotNull final Processor<? super PsiDirectory> consumer, boolean includeLibrarySources) { return processDirectories(psiPackage.getQualifiedName(), scope, dir -> { final PsiDirectory psiDirectory = psiPackage.getManager().findDirectory(dir); return psiDirectory == null || consumer.process(psiDirectory); }); }