fBuilder.add(label, cc.xywh(1, 1, 1, 3));
if (value instanceof DefaultMutableTreeNode
&& ((DefaultMutableTreeNode) value).getUserObject() instanceof SourceListBadgeContentProvider) {
Object userObject = ((DefaultMutableTreeNode) node).getUserObject();
SourceListBadgeContentProvider badgeContentProvider =
(SourceListBadgeContentProvider) userObject;
if (badgeContentProvider.getCounterValue() > 0) {
fBuilder.add(fCountRenderer.getComponent(), cc.xy(3, 2, "center, fill"));
fCountRenderer.setState(badgeContentProvider.getCounterValue(), selected);
}
}
return fBuilder.getPanel();
}