@NotNull
  public static Set<MavenRemoteRepository> getRemoteResolvedRepositories(@NotNull Project project) {
    MavenProjectsManager projectsManager = MavenProjectsManager.getInstance(project);
    Set<MavenRemoteRepository> repositories = projectsManager.getRemoteRepositories();
    MavenEmbeddersManager embeddersManager = projectsManager.getEmbeddersManager();

    String baseDir = project.getBasePath();
    List<MavenProject> projects = projectsManager.getRootProjects();
    if (!projects.isEmpty()) {
      baseDir = getBaseDir(projects.get(0).getDirectoryFile()).toString();
    }
    if (null == baseDir) {
      baseDir = "";
    }

    MavenEmbedderWrapper embedderWrapper = embeddersManager.getEmbedder(MavenEmbeddersManager.FOR_POST_PROCESSING, baseDir);
    try {
      Set<MavenRemoteRepository> resolvedRepositories = embedderWrapper.resolveRepositories(repositories);
      return resolvedRepositories.isEmpty() ? repositories : resolvedRepositories;
    }
    catch (Exception e) {
      MavenLog.LOG.warn("resolve remote repo error", e);
    }
    finally {
      embeddersManager.release(embedderWrapper);
    }
    return repositories;
  }
@NotNull
  public static Set<MavenRemoteRepository> getRemoteResolvedRepositories(@NotNull Project project)