presto-main/src/main/java/io/prestosql/util/StatementUtils.java/StatementUtils/isTransactionControlStatement
class StatementUtils:    public static boolean isTransactionControlStatement(Statement statement)
    {
        return statement instanceof StartTransaction || statement instanceof Commit || statement instanceof Rollback;
    }