presto-main/src/main/java/io/prestosql/memory/MemoryPool.java/MemoryPool/addListener
class MemoryPool:    public void addListener(MemoryPoolListener listener)
    {
        listeners.add(requireNonNull(listener, "listener cannot be null"));
    }