code: public static <T> List<T> toList(TypedIterable<T> iterable) {
          List<T> result = new ArrayList<>();
          for (T item : iterable) {
              result.add(item);
          }
          return result;
      }
docs: Converts the given iterable to a {@link List}. Note: traversing the iterable may destroy the original.
  
  @param iterable The iterable
  @param <T> The base type of the iterable
  @return A list that contains the elements of the given iterable