String (@NotNull String suggestedName, @NotNull Collection<? extends Sdk> sdks) { Set<String> nameList = sdks.stream().map( jdk -> jdk.getName()).collect(Collectors.toSet()); return UniqueNameGenerator.generateUniqueName(suggestedName, "", "", " (", ")", o -> !nameList.contains(o)); }