presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/ExtractCommonPredicatesExpressionRewriter.java/Visitor/filterDeterministicPredicates
class Visitor:        private Set<Expression> filterDeterministicPredicates(List<Expression> predicates)
        {
            return predicates.stream()
                    .filter(expression -> isDeterministic(expression, metadata))
                    .collect(toSet());
        }