void (JTree t, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean focus) { if (!(value instanceof CheckedTreeNode node)) return; final Object userObject = node.getUserObject(); if (userObject instanceof String) { getTextRenderer().append((String)userObject); } if (userObject instanceof FileType) { getTextRenderer().setIcon(((FileType)userObject).getIcon()); getTextRenderer().append(((FileType)userObject).getDescription()); } }