public static void visitRootsInAllModules(@NotNull Project project, @NotNull RootVisitor visitor) {
    for (Module mod : ModuleManager.getInstance(project).getModules()) {
      visitRoots(mod, true, false, visitor);
    }
  }
public static void visitRootsInAllModules(@NotNull Project project, @NotNull RootVisitor visitor)