public File next() {
        if (resultQueue.isEmpty()) {
            populateResults();
        }
        return resultQueue.poll();
    }
Returns the next file from the result queue.

@see Iterator#next()
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/file/FileFinderIterator.java