static void checkNotPrimitive(Type type) {
        checkArgument(!(type instanceof Class<?>) || !((Class<?>) type).isPrimitive());
    }
Returns the declaring class of {@code typeVariable}, or {@code null} if it was not declared by
a class.
core/src/main/java/com/alibaba/fastjson2/util/BeanUtils.java