code: public void populateTotalTargets(final Long totalTargets) {
          if (totalTargets == null) {
              totalTargetsLabel.setVisible(false);
          } else {
              totalTargetsLabel.setVisible(true);
              totalTargetsLabel.setValue(getTotalTargetMessage(totalTargets));
          }
      }
docs: Displays the total targets or hides the label when null is supplied.
  
  @param totalTargets
  null to hide the label or a count to be displayed as total
  targets message