presto-main/src/main/java/io/prestosql/sql/rewrite/StatementRewrite.java/Rewrite/rewrite
class Rewrite:        Statement rewrite(
                Session session,
                Metadata metadata,
                SqlParser parser,
                Optional<QueryExplainer> queryExplainer,
                Statement node,
                List<Expression> parameters,
                Map<NodeRef<Parameter>, Expression> parameterLookup,
                AccessControl accessControl,
                WarningCollector warningCollector);