presto-main/src/main/java/io/prestosql/SystemSessionProperties.java/SystemSessionProperties/isOptimizeDistinctAggregationEnabled
class SystemSessionProperties:    public static boolean isOptimizeDistinctAggregationEnabled(Session session)
    {
        return session.getSystemProperty(OPTIMIZE_DISTINCT_AGGREGATIONS, Boolean.class);
    }