presto-main/src/main/java/io/prestosql/sql/planner/DesugarAtTimeZoneRewriter.java/DesugarAtTimeZoneRewriter/rewrite
class DesugarAtTimeZoneRewriter:    public static Expression rewrite(Expression expression, Session session, Metadata metadata, TypeAnalyzer typeAnalyzer, SymbolAllocator symbolAllocator)
    {
        requireNonNull(metadata, "metadata is null");
        requireNonNull(typeAnalyzer, "typeAnalyzer is null");

        if (expression instanceof SymbolReference) {
            return expression;
        }
        Map<NodeRef<Expression>, Type> expressionTypes = typeAnalyzer.getTypes(session, symbolAllocator.getTypes(), expression);

        return rewrite(expression, expressionTypes, metadata);
    }