void (final TreeCellRenderer renderer) { TreeTableTreeCellRendererWrapper wrapper = renderer instanceof TreeTableTreeCellRendererWrapper ? ((TreeTableTreeCellRendererWrapper)renderer) : new TreeTableTreeCellRendererWrapper(renderer); super.setCellRenderer(wrapper); }