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