void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { assert value instanceof DefaultMutableTreeNode; DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)value; Object userObject = treeNode.getUserObject(); if (userObject == null) return; if (userObject instanceof MyColoredTreeCellRenderer node) { node.customizeCellRenderer(this, tree, value, selected, expanded, leaf, row, hasFocus); if (node instanceof SliceNode) { setToolTipText(((SliceNode)node).getPresentation().getTooltip()); } } else { @NlsSafe String userObjectString = userObject.toString(); append(userObjectString, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES); } }