presto-main/src/main/java/io/prestosql/sql/planner/DomainTranslator.java/DomainTranslator/combineRangeWithExcludedPoints
class DomainTranslator:    private Expression combineRangeWithExcludedPoints(Type type, SymbolReference reference, Range range, List<Expression> excludedPoints)
    {
        if (excludedPoints.isEmpty()) {
            return processRange(type, range, reference);
        }

        Expression excludedPointsExpression = new NotExpression(new InPredicate(reference, new InListExpression(excludedPoints)));
        if (excludedPoints.size() == 1) {
            excludedPointsExpression = new ComparisonExpression(NOT_EQUAL, reference, getOnlyElement(excludedPoints));
        }

        return combineConjuncts(metadata, processRange(type, range, reference), excludedPointsExpression);
    }