code: public void populateGroupsLegendByTargetCounts(final List<Long> listOfTargetCountPerGroup) {
          loadingLabel.setVisible(false);
  
          for (int i = 0; i < getGroupsWithoutToBeContinuedLabel(listOfTargetCountPerGroup.size()); i++) {
              final Component component = groupsLegend.getComponent(i);
              final Label label = (Label) component;
              if (listOfTargetCountPerGroup.size() > i) {
                  final Long targetCount = listOfTargetCountPerGroup.get(i);
                  label.setValue(getTargetsInGroupMessage(targetCount,
                          i18n.getMessage("textfield.rollout.group.default.name", i + 1)));
                  label.setVisible(true);
              } else {
                  label.setValue("");
                  label.setVisible(false);
              }
          }
  
          showOrHideToBeContinueLabel(listOfTargetCountPerGroup);
  
          unassignedTargetsLabel.setValue("");
          unassignedTargetsLabel.setVisible(false);
      }
docs: Populates the legend based on a list of anonymous groups. They can't have
  unassigned targets.
  
  @param listOfTargetCountPerGroup
  list of target counts