int row = getRowForPath(tree, path);  if (! isLeaf(row))
if (! treeModel.isLeaf(path.getLastPathComponent()))
  protected boolean isLocationInExpandControl(TreePath path, int mouseX,                                              int mouseY)  {    boolean cntlClick = false;    int row = getRowForPath(tree, path);        if (! isLeaf(row))      {        Rectangle bounds = getPathBounds(tree, path);        if (hasControlIcons()            && (mouseX < bounds.x)            && (mouseX > (bounds.x - getCurrentControlIcon(path).getIconWidth() - gap)))          cntlClick = true;      }    return cntlClick;  }