private <T>Iterator<T> touch(Iterator<T> iter){
  iter.hasNext();
  return iter;
}

private < T > Iterator < T > touch ( Iterator < T > iter ) { iter . hasNext ( ) ; return iter ; }
force computation of the first item in an iterator so metrics calculations for a method reflect the cost of the first batch of results .
