};
final String label = "Value distribution for group '" + LabelUtils.getLabel(res.getGroupName()) + "'";
final ValueCount distinctValue = getDistinctValueCount(res);
final DCCollapsiblePanel collapsiblePanel;
if (distinctValue == null) {
collapsiblePanel = new DCCollapsiblePanel(label, label, false, componentRef);
} else {
final String collapsedLabel = label + ": " + LabelUtils.getLabel(distinctValue.getValue()) + "="
+ distinctValue.getCount() + "";
collapsiblePanel = new DCCollapsiblePanel(collapsedLabel, label, true, componentRef);
}
panel.add(collapsiblePanel.toPanel());
}
return panel;
}