code: public void reset() {
          numberOfErrors = 0;
          numberOfFatalErrors = 0;
          numberOfWarnings = 0;
          errors.clear();
          fatalErrors.clear();
          warnings.clear();
      }
docs: Reset accumulated errors counters.