code: private void resetReportedLeaks() {
          try {
              Field reportedLeaks = ResourceLeakDetector.class.getDeclaredField("reportedLeaks");
              reportedLeaks.setAccessible(true);
              Object f = reportedLeaks.get(this);
              if (f instanceof Map) {
                  ((Map) f).clear();
              }
          }
          catch (Throwable t) {
              // do nothing
          }
      }
docs: This private field in the superclass needs to be reset so that we can continue reporting leaks even
  if they're duplicates. This is ugly but ideally should not be called frequently (or at all).