final Iterator iterator = sample.new Iterator();  while (iterator.hasNext()) { final Pair next = iterator.next(); final StatisticsSet statistics = next.getStatistics();  statistics.addValue(m_untimedTestsIndex, statistics.getCount(m_timedTestsIndex)); statistics.reset(m_timedTestsIndex);
sample.new ForEach() { public void next(Test test, StatisticsSet statistics) { statistics.addValue(m_untimedTestsIndex, statistics.getCount(m_timedTestsIndex)); statistics.reset(m_timedTestsIndex); }
  public void removeTestTimeFromSample(TestStatisticsMap sample) {    final Iterator iterator = sample.new Iterator();    while (iterator.hasNext()) {      final Pair next = iterator.next();      final StatisticsSet statistics = next.getStatistics();      statistics.addValue(m_untimedTestsIndex,                          statistics.getCount(m_timedTestsIndex));      statistics.reset(m_timedTestsIndex);    }  }