CachedValue<Collection<PsiDirectory>> (final boolean includeLibrarySources) { return CachedValuesManager.getManager(getProject()).createCachedValue(() -> { Collection<PsiDirectory> result = new ArrayList<>(); Processor<PsiDirectory> processor = Processors.cancelableCollectProcessor(result); getFacade().processPackageDirectories(this, allScope(), processor, includeLibrarySources); return CachedValueProvider.Result.create(result, PsiPackageImplementationHelper.getInstance().getDirectoryCachedValueDependencies(this)); }, false); }