presto-main/src/main/java/io/prestosql/cost/SimpleFilterProjectSemiJoinStatsRule.java/SimpleFilterProjectSemiJoinStatsRule/isSemiJoinOutputReference
class SimpleFilterProjectSemiJoinStatsRule:    private static boolean isSemiJoinOutputReference(Expression conjunct, Symbol semiJoinOutput)
    {
        SymbolReference semiJoinOuputSymbolReference = semiJoinOutput.toSymbolReference();
        return conjunct.equals(semiJoinOuputSymbolReference) ||
                (conjunct instanceof NotExpression && ((NotExpression) conjunct).getValue().equals(semiJoinOuputSymbolReference));
    }