@Override
  public void setItemSelectedCallback(Consumer<? super T> c) {
    myList.addListSelectionListener(e -> {
      T selectedValue = myList.getSelectedValue();
      c.consume(selectedValue);
    });
  }
@Override
  public void setItemSelectedCallback(Consumer<? super T> c)