@Override
  public Rectangle getPathBounds(JTree tree, TreePath path) {
    return path != null && isValid(tree) ? super.getPathBounds(tree, path) : null;
  }
@Override
  public Rectangle getPathBounds(JTree tree, TreePath path)