@Override
  public void setItemChosenCallback(Consumer<? super T> callback) {
    myBuilder.setItemChosenCallback(() -> {
      TreePath path = myTree.getSelectionModel().getLeadSelectionPath();
      T component = (T)path.getLastPathComponent();
      if (component != null) {
        callback.consume(component);
      }
    });
  }
@Override
  public void setItemChosenCallback(Consumer<? super T> callback)