String (@NotNull Iterable<?> items, @NotNull String separator) { StringBuilder result = new StringBuilder(); for (Object item : items) { result.append(item).append(separator); } if (result.length() > 0) { result.setLength(result.length() - separator.length()); } return result.toString(); }