String (ServerType<?> serverType) { List<RemoteServer<?>> servers = ContainerUtil.filter( RemoteServersManager.getInstance().getServers(), server -> server.getType().equals(serverType)); return UniqueNameGenerator.generateUniqueName(serverType.getPresentableName(), s -> { for (RemoteServer<?> server : servers) { if (server.getName().equals(s)) { return false; } } return true; }); }