@Override
  public TreePath getEditingPath(JTree tree) {
    if (!isValid(tree)) {
      return null;
    }
    return super.getEditingPath(tree);
  }
@Override
  public TreePath getEditingPath(JTree tree)