public ObjectWriter getObjectWriterFromCache(Type objectType, Class objectClass, boolean fieldBased) {
        return fieldBased
                ? cacheFieldBased.get(objectType)
                : cache.get(objectType);
    }
@deprecated only use compatible with fastjson 1.x
core/src/main/java/com/alibaba/fastjson2/writer/ObjectWriterProvider.java