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