{ if (tree.getCellRenderer() == null) {
currentCellRenderer = tree.getCellRenderer();
  protected void updateRenderer()  {    if (tree != null)      {        if (tree.getCellRenderer() == null)          {              if (currentCellRenderer == null)              currentCellRenderer = createDefaultCellRenderer();                      tree.setCellRenderer(currentCellRenderer);  }      }  }