@Override
    public Object valueOf(Object o) {
      if (o instanceof MyTreeNode node) {
        return node.getValue();
      }

      return null;
    }
@Override
    public Object valueOf(Object o)