String (@NotNull Collection<String> strings, @NotNull String separator) { if (strings.size() <= 1) { return notNullize(strings.isEmpty() ? null : strings.iterator().next()); } StringBuilder result = new StringBuilder(); join(strings, separator, result); return result.toString(); }