@ SuppressWarnings ( "unchecked" ) static < T > List < T > toList ( final Iterable < ? extends T > iterable ) { if ( iterable instanceof List ) { return ( List < T > ) iterable ; } return ImmutableList . copyOf ( iterable ) ; }
Return the specified iterable as a list .