code: public static <T> Set<T> asSet(final Iterable<T> iterable)
     {
        Set<T> result = new HashSet<T>();
        for (T t : iterable)
        {
           result.add(t);
        }
        return result;
     }
docs: Return the elements of the given {@link Iterable} as a {@link List}.