public static HistogramVisitor Collect(this IHistogram histogram) { var visitor = new HistogramVisitor(); histogram.Visit(visitor); return(visitor); }