/guava/guava/src/com/google/common/collect/Iterables.java
} return castOrCopyToCollection( iterable).toArray( ) ;
return castOrCopyToCollection ( iterable ) .toArray ( ) ; }
} static <T extends @Nullable Object> T[] toArray(Iterable<? extends T> iterable, T[] array) { Collection<? extends T> collection = castOrCopyToCollection(iterable); return collection.toArray(array); } static @Nullable Object[] toArray(Iterable<?> iterable) { <extra_id_0> private static <E extends @Nullable Object> Collection<E> castOrCopyToCollection( Iterable<E> iterable) { return (iterable instanceof Collection) ? (Collection<E>) iterable : Lists.newArrayList(iterable.iterator()); }