code: public static <P, R> Set<R> transform(Set<P> elements, Function<P, R> transformer) {
          return Sets.newHashSet(transform(newArrayList(elements), transformer));
      }
docs: Returns a list that applies {@code transformer} to each element of {@code
  elements}