presto-main/src/main/java/io/prestosql/metadata/AbstractTypedJacksonModule.java/AbstractTypedJacksonModule/createSerializer
class AbstractTypedJacksonModule:        @SuppressWarnings("unchecked")
        private static <T> JsonSerializer<T> createSerializer(SerializerProvider provider, Class<?> type)
                throws JsonMappingException
        {
            JavaType javaType = provider.constructType(type);
            return (JsonSerializer<T>) BeanSerializerFactory.instance.createSerializer(provider, javaType);
        }