@Override
    public T next() {
        return mapper.apply(underlyingIterator.next());
    }
An iterator that maps another iterator's elements from type `F` to type `T`.
clients/src/main/java/org/apache/kafka/common/utils/MappedIterator.java