presto-main/src/main/java/io/prestosql/sql/planner/optimizations/QueryCardinalityUtil.java/QueryCardinalityUtil/isScalar
class QueryCardinalityUtil:    public static boolean isScalar(PlanNode node)
    {
        return isScalar(node, noLookup());
    }