presto-hive/src/main/java/io/prestosql/plugin/hive/ConcurrentLazyQueue.java/ConcurrentLazyQueue/isEmpty
class ConcurrentLazyQueue:    public synchronized boolean isEmpty()
    {
        return !iterator.hasNext();
    }