static List<PsiFileSystemItem> getContextsForModule(@NotNull Module module,
                                                      @NotNull String packageName,
                                                      @Nullable GlobalSearchScope scope) {
    Query<VirtualFile> query = PlatformPackageUtil.getDirectoriesByPackageName(packageName, false, module.getProject());

    return StreamEx.of(query.findAll()).filter(scope == null ? Predicates.alwaysTrue() : file -> scope.contains(file))
      .<PsiFileSystemItem>map(PsiManager.getInstance(module.getProject())::findDirectory)
      .nonNull()
      .toList();
  }
static List<PsiFileSystemItem> getContextsForModule(@NotNull Module module,
                                                      @NotNull String packageName,
                                                      @Nullable GlobalSearchScope scope)