public static <T> List<AnyM<T>> iterableToAnyMList(Collection<Iterable<T>> anyM){ return anyM.stream().map(i-> AsAnyM.anyMIterable(i)).collect(Collectors.toList()); } public static <T> List<AnyM<T>> collectionToAnyMList(Collection<Collection<T>> anyM){