@Override
  public void execute(Context context) {
    Collection<CeTaskMessages.Message> warnings = new ArrayList<>();
    try (CloseableIterator<ScannerReport.AnalysisWarning> it = reportReader.readAnalysisWarnings()) {
      it.forEachRemaining(w -> warnings.add(new CeTaskMessages.Message(w.getText(), w.getTimestamp())));
    }
    if (!warnings.isEmpty()) {
      ceTaskMessages.addAll(warnings);
    }
  }
@Test
  public void execute_does_not_persist_warnings_from_reportReader_when_empty() {
    reportReader.setScannerLogs(emptyList());

    underTest.execute(new TestComputationStepContext());

    verifyNoInteractions(ceTaskMessages);
  }