List<PsiDirectory> (Module module) { VirtualFile[] contentRoots = ModuleRootManager.getInstance(module).getContentRoots(); return ReadAction.compute(() -> ContainerUtil.mapNotNull(contentRoots, root -> PsiManager.getInstance(module.getProject()).findDirectory(root))); }