code: public static <T> List<T> toList(final Collection<T> collection) {
  
          if (isEmpty(collection)) {
              return new ArrayList<T>(0);
          } else {
              return new ArrayList<T>(collection);
          }
      }
docs: Convert given collection to a list.
  
  @param collection
  source collection.
  @return a list has full given collection element and order by collection
  index.