docs: public static <T> Iterable<T> toIterable(Enumeration<T> in) {
          List<T> out = new LinkedList<T>();
          while(in.hasMoreElements()) {
              out.add(in.nextElement());
          }
          return out;
      }