presto-main/src/main/java/io/prestosql/type/InternalTypeManager.java/InternalTypeManager/getTypes
class InternalTypeManager:    @Override
    public List<Type> getTypes()
    {
        return ImmutableList.copyOf(metadata.getTypes());
    }