final int classesCount = rootNode.getClassesCount();
setHits(bugCount == -1 ? "" : "(found " + bugCount + " bug items in " + classesCount + (classesCount == 1 ? " class)" : " classes)"));
setLinkHtml(rootNode.getLinkHtml());
} else if (value instanceof BugInstanceGroupNode) {
final BugInstanceGroupNode groupNode = (BugInstanceGroupNode) value;
//final TreePath path = tree.getPathForRow(row);
if (expanded) {
final Icon expandedIcon = groupNode.getExpandedIcon();
((MaskIcon) expandedIcon).setColorPainted(selected);
setIcon(expandedIcon);
} else {
final Icon collapsedIcon = groupNode.getCollapsedIcon();
((MaskIcon) collapsedIcon).setColorPainted(selected);
setIcon(collapsedIcon);
}
setToolTipText(groupNode.getTooltip());
setTitle(groupNode.getSimpleName());
final int memberCount = groupNode.getMemberCount();
setHits("(" + memberCount + (memberCount == 1 ? " item" : " items") + ')');
} else {
setIcon(null);
}