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