public static <T> String toLatin1String(Collection<T> values, Function<T, String> mapper) {
        StrJoiner joiner = new StrJoiner(values.size());
        for (T value : values) {
            joiner.add(mapper.apply(value));
        }
        return joiner.toStringWithBrackets();
    }
Note that the method only checks the immutable classes used by Turms.
turms-server-common/src/main/java/im/turms/server/common/infra/collection/CollectionUtil.java