presto-parser/src/main/java/io/prestosql/sql/tree/LogicalBinaryExpression.java/LogicalBinaryExpression/flip
class LogicalBinaryExpression:        public Operator flip()
        {
            switch (this) {
                case AND:
                    return OR;
                case OR:
                    return AND;
                default:
                    throw new IllegalArgumentException("Unsupported logical expression type: " + this);
            }
        }