public static boolean isUnmodifiableType(Class<?> clazz) {
        for (; clazz != null; clazz = clazz.getSuperclass()) {
            if (UNMODIFIABLE_TYPES.contains(clazz)) {
                return true;
            }
        }
        return false;
    }
Returns true if the type is a known unmodifiable type.

@param clazz the type
@return true if the type is a known unmodifiable type
querydsl-core/src/main/java/com/querydsl/core/util/CollectionUtils.java