presto-main/src/main/java/io/prestosql/util/MoreLists.java/MoreLists/mappedCopy
class MoreLists:    public static <T, R> List<R> mappedCopy(Iterable<T> elements, Function<T, R> mapper)
    {
        requireNonNull(elements, "elements is null");
        requireNonNull(mapper, "mapper is null");
        return stream(elements)
                .map(mapper)
                .collect(toImmutableList());
    }