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