class TracePruner {

  public static List<Trace> prune(List<Trace> traces, int maxSize) {
    if (traces.size() <= maxSize) {
      return traces;
    }
    return new TracePruner(traces).prune(maxSize);
  }

  private  TracePruner(List<Trace> traces);

}