code: public static Consumer<Selection<Element>> setValue(Object newValue) {
      return selection -> selection.result().setValue(newValue);
    }
docs: Returns a function that sets the value of a selected element.
  
  @param newValue the value to set
  @return a function that sets the value of a selected element.