public void setRemoteRepositories(List<MavenRemoteRepository> remoteRepositories) {
    myRemoteRepositories = new ArrayList<>(remoteRepositories);
  }
public void setRemoteRepositories(List<MavenRemoteRepository> remoteRepositories)