presto-main/src/main/java/io/prestosql/SystemSessionProperties.java/SystemSessionProperties/getQueryMaxMemory
class SystemSessionProperties:    public static DataSize getQueryMaxMemory(Session session)
    {
        return session.getSystemProperty(QUERY_MAX_MEMORY, DataSize.class);
    }