}
  private void doExpandParents(TreePath path, boolean state)  {    TreePath parent = path.getParentPath();    if (isExpanded(parent))      return;        if (parent != null)      doExpandParents(parent, false);    nodeStates.put(path, state ? EXPANDED : COLLAPSED);  }