presto-main/src/main/java/io/prestosql/sql/ExpressionUtils.java/ExpressionUtils/filterNonDeterministicConjuncts
class ExpressionUtils:    public static Expression filterNonDeterministicConjuncts(Metadata metadata, Expression expression)
    {
        return filterConjuncts(metadata, expression, not(testExpression -> DeterminismEvaluator.isDeterministic(testExpression, metadata)));
    }