void (JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (!(value instanceof CheckedTreeNode node)) return; Color background = UIUtil.getTreeBackground(selected, true); PostfixTemplateCheckedTreeNode templateNode = ObjectUtils.tryCast(node, PostfixTemplateCheckedTreeNode.class); SimpleTextAttributes attributes; if (templateNode != null) { Color fgColor = templateNode.isChanged() || templateNode.isNew() ? JBColor.BLUE : null; attributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, fgColor); } else { attributes = SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES; } getTextRenderer().append(StringUtil.notNullize(value.toString()), //NON-NLS new SimpleTextAttributes(background, attributes.getFgColor(), JBColor.RED, attributes.getStyle())); if (templateNode != null) { String example = templateNode.getTemplate().getExample(); if (StringUtil.isNotEmpty(example)) { getTextRenderer().append(" " + example, new SimpleTextAttributes(SimpleTextAttributes.STYLE_SMALLER, JBColor.GRAY), false); } } }