code: public static <T> Function<T, Void> voidFunction(Consumer<T> consumer) {
          return v -> {
              consumer.accept(v);
              return null;
          };
      }
docs: Converts the specified {@link Consumer} into a {@link Function} that returns {@code null}.