TaskProjectConfiguration () { LinkedHashSet<SharedServer> set = new LinkedHashSet<>(this.servers); for (TaskRepository repository : TaskManager.getManager(myProject).getAllRepositories()) { if (repository.isShared()) { SharedServer server = new SharedServer(); server.type = repository.getRepositoryType().getName(); server.url = repository.getUrl(); set.add(server); } } servers.clear(); servers.addAll(set); return this; }