presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/DesugarCurrentPath.java/DesugarCurrentPath/createRewrite
class DesugarCurrentPath:    private static ExpressionRewriter createRewrite(Metadata metadata)
    {
        return (expression, context) -> rewriteWith(new io.prestosql.sql.tree.ExpressionRewriter<Void>()
        {
            @Override
            public Expression rewriteCurrentPath(CurrentPath node, Void context, ExpressionTreeRewriter<Void> treeRewriter)
            {
                return getCall(node, metadata);
            }
        }, expression);
    }