class Lists {
  private Lists() {
  }

  public static <T> List<T> from(Iterator<T> iterator) {<FILL_FUNCTION_BODY>}

  public static <T> List<T> from(Set<Map.Entry<T, ?>> entries) {
    List<T> list = new ArrayList<T>();
    for (Map.Entry<T, ?> entry : entries)
      list.add(entry.getKey());
    return list;
  }
}

    List<T> list = new ArrayList<T>();
    while (iterator.hasNext())
      list.add(iterator.next());
    return list;
  
<no_super_class>