/guava/android/guava/src/com/google/common/collect/Iterators.java
return result;
return wasModified;
checkNotNull(addTo); checkNotNull(iterator); boolean wasModified = false; while (iterator.hasNext()) { wasModified |= addTo.add(iterator.next()); } <extra_id_0> } public static int frequency(Iterator<?> iterator, @CheckForNull Object element) { int count = 0; while (contains(iterator, element)) { count++; }