@Nullable
  private static RemoteRepositoryDescription getRemoteRepositoryFromLibrary(@NotNull Project project,
                                                                            @Nullable JpsMavenRepositoryLibraryDescriptor desc) {
    if (desc == null) {
      return null;
    }

    String repositoryId = desc.getJarRepositoryId();
    if (repositoryId == null) {
      return null;
    }

    return ContainerUtil.find(RemoteRepositoriesConfiguration.getInstance(project).getRepositories(),
                              it -> it.getId().equals(repositoryId));
  }
@Nullable
  private static RemoteRepositoryDescription getRemoteRepositoryFromLibrary(@NotNull Project project,
                                                                            @Nullable JpsMavenRepositoryLibraryDescriptor desc)