HashSet<MavenRemoteRepository> (@NotNull ArrayList<MavenRemoteRepository> repositories, MavenToken token) { MavenServerUtil.checkToken(token); try { return new HashSet<>( convertRemoteRepositories(convertRepositories(new ArrayList<>(repositories)))); } catch (Exception e) { throw wrapToSerializableRuntimeException(e); } }