public static boolean isImmutable(Map<?, ?> map) {
        return IMMUTABLE_MAP_CLASS.isInstance(map)
                || IMMUTABLE_EMPTY_MAP_CLASS.isInstance(map)
                || map instanceof ImmutableMap<?, ?>;
    }
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