code: @SuppressWarnings("squid:S3457")
    // do not use platform specific line ending
    String createEnglishMailText(ImportRun importRun, ZoneId zone) {
      ZonedDateTime start = importRun.getStartDate().atZone(zone);
      ZonedDateTime end =
          importRun
              .getEndDate()
              .orElseThrow(() -> new IllegalStateException("ImportRun must have an end date"))
              .atZone(zone);
      String startDateTimeString = ofLocalizedDateTime(FULL).withLocale(ENGLISH).format(start);
      String endTimeString = ofLocalizedTime(MEDIUM).withLocale(ENGLISH).format(end);
  
      return String.format(
          "The import started by you on %1s finished on %2s with status: %3s\nMessage:\n%4s",
          startDateTimeString, endTimeString, importRun.getStatus(), importRun.getMessage());
    }
docs: Creates an English mail message describing a finished {@link ImportRun}. Formats the run's
  start and end times using {@link ZoneId#systemDefault()}.
  
  @param importRun the ImportRun to describe, it should have non-null start and end dates.
  @return String containing the mail message.