presto-main/src/main/java/io/prestosql/sql/planner/DomainTranslator.java/DomainTranslator/complementIfNecessary
class DomainTranslator:        private static Expression complementIfNecessary(Expression expression, boolean complement)
        {
            return complement ? new NotExpression(expression) : expression;
        }