@Override
        public void remove() {
            throw new UnsupportedOperationException();
        }
Iterator that goes over the given partition map and selects partitions that need to be included in the response.
If updateShareContextAndRemoveUnselected is set to true, the share context will be updated for the selected
partitions and also remove unselected ones as they are encountered.
core/src/main/java/kafka/server/share/ShareSessionContext.java