code: @SuppressWarnings("unchecked")
    public static <T> Collection<T> transform(Collection<T> collection, Transformer<T> transformer) {
  
      Assert.notNull(collection, "Collection is required");
      Assert.notNull(transformer, "Transformer is required");
  
      return collection.stream().map(transformer::transform).collect(Collectors.toList());
    }
docs: Transforms the elements in the {@link Collection} using the {@link Transformer}.
  
  @param <T> Class type of the elements in the {@link Collection}.
  @param collection {@link Collection} of elements to transform.
  @param transformer {@link Transformer} used to transform the elements in the {@link Collection}.
  @return the {@link Collection} of elements transformed by the given {@link Transformer}.
  @throws IllegalArgumentException if either the {@link Collection} or {@link Transformer} are null.
  @see org.cp.elements.lang.Transformer
  @see java.util.Collection