public static <T> List<T> sort(List<T> values) {
        if (IMMUTABLE_COLLECTION_CLASS.isAssignableFrom(values.getClass())) {
            List<T> newValues = new ArrayList<>(values);
            newValues.sort(null);
            return newValues;
        }
        values.sort(null);
        return values;
    }
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