/guava/android/guava/src/com/google/common/collect/Iterables.java
Collection<?> collection2 = ( Collection<?>) iterable2;Collection<? extends T> c = ( Collection<? extends T>) iterable;
Collection<? extends T> c = ( Collection<? extends T> ) iterable;
return Iterators.getLast(iterable.iterator()); } @ParametricNullness public static <T extends @Nullable Object> T getLast( Iterable<? extends T> iterable, @ParametricNullness T defaultValue) { if (iterable instanceof Collection) { <extra_id_0> if (c.isEmpty()) { return defaultValue; } else if (iterable instanceof List) { return getLastInNonemptyList(Lists.cast(iterable)); } }