public static MavenRepositoriesHolder getInstance(@NotNull Project p) {
    return p.getService(MavenRepositoriesHolder.class);
  }
public static MavenRepositoriesHolder getInstance(@NotNull Project p)