if (currentCellRenderer != null) return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) currentCellRenderer, cellEditor); return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor);
DefaultTreeCellEditor ed; if (currentCellRenderer != null && currentCellRenderer instanceof DefaultTreeCellRenderer) ed = new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) currentCellRenderer); else ed = new DefaultTreeCellEditor(tree, null); return ed;
  protected TreeCellEditor createDefaultCellEditor()  {    if (currentCellRenderer != null)      return new DefaultTreeCellEditor(                                       tree,                                       (DefaultTreeCellRenderer) currentCellRenderer,                                       cellEditor);    return new DefaultTreeCellEditor(                                     tree,                                     (DefaultTreeCellRenderer) createDefaultCellRenderer(),                                     cellEditor);  }