public static <T> List<T> toMutableList(List<T> list) {
        return isImmutable(list)
                ? new ArrayList<>(list)
                : list;
    }
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