docs: public void reset() {
          totalTargetsLabel.setVisible(false);
          populateGroupsLegendByTargetCounts(Collections.emptyList());
          if (groupsLegend.getComponentCount() > MAX_GROUPS_TO_BE_DISPLAYED) {
              groupsLegend.getComponent(MAX_GROUPS_TO_BE_DISPLAYED).setVisible(false);
          }
      }