if (treeModel != null && (!isLeaf && !node.equals(treeModel.getRoot())) && (tree.isRootVisible() || getLevel(node) != 1)) return true; return false;
return (!isLeaf && getLevel(node) != 0 && hasControlIcons());
  protected boolean shouldPaintExpandControl(TreePath path, int row,                                             boolean isExpanded,                                             boolean hasBeenExpanded,                                             boolean isLeaf)  {    Object node = path.getLastPathComponent();    if (treeModel != null && (!isLeaf && !node.equals(treeModel.getRoot())) &&         (tree.isRootVisible() || getLevel(node) != 1))      return true;    return false;  }