@Override
  public NewAnalysisError onFile(InputFile inputFile) {
    checkArgument(inputFile != null, "Cannot use a inputFile that is null");
    checkState(this.inputFile == null, "onFile() already called");
    this.inputFile = inputFile;
    return this;
  }
@Test
  public void test_no_storage() {
    DefaultAnalysisError analysisError = new DefaultAnalysisError();

    assertThatThrownBy(() -> analysisError.onFile(inputFile).save())
      .isInstanceOf(NullPointerException.class);
  }