code: private void setCalculateHighestAlertIfSameAlert(Alert alert) {
          if (highestAlert != null && highestAlert.getAlertId() == alert.getAlertId()) {
              calculateHighestAlert = true;
              highestAlert = null;
          }
      }
docs: Sets whether or not the highest alert needs to be calculated, based on the given alert.
  <p>
  The highest alert needs to be calculated if the given alert is the highest alert.
  
  @param alert the alert to check