for (int i = 0; i < children.length; i++) {
if (level <= children[i].getLevel()) {
TreeItem child = createNewRow(row);
child.setText(getElementName(children[i].getJavaElement()));
child.setImage(getImage(children[i]));
MetricValue val = children[i].getValue(metric);
child.setText(1, (val != null) ? format(val.getValue())
: "");
AvgValue avg = children[i].getAverageValue(metric);
MaxValue max = children[i].getMaxValue(metric);
if ((avg != null) || (max != null)) {
if (avg != null) {