@Override
  public void startEditingAtPath(JTree tree, TreePath path) {
    if (path == null || !isValid(tree)) {
      return;
    }
    super.startEditingAtPath(tree, path);
  }
@Override
  public void startEditingAtPath(JTree tree, TreePath path)