class TransformUtils {

    public static <T, E> Collection<E> map(Collection<T> items, Map<T> mapper) {
        Collection<E> result = new ArrayList<>();
        for (T item : items) {
            result.add(mapper.map(item));
        }
        return result;
    }

}