public static boolean isImmutable(Iterable<?> iterable) {
        return IMMUTABLE_COLLECTION_CLASS.isInstance(iterable)
                || IMMUTABLE_EMPTY_LIST_CLASS.isInstance(iterable)
                || IMMUTABLE_EMPTY_SET_CLASS.isInstance(iterable)
                || iterable instanceof ImmutableCollection;
    }
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