private static void createCombinedTrace(final TraceList newTrace,final List<TraceList> traces,final Set<BreakpointAddress> addresses){
  final Set<BreakpointAddress> visitedAddresses=new LinkedHashSet<BreakpointAddress>();
  for (  final TraceList trace : traces) {
    for (    final ITraceEvent event : trace) {
      final BreakpointAddress address=event.getOffset();
      if (!addresses.contains(address)) {
        continue;
      }
      if (visitedAddresses.contains(address)) {
        continue;
      }
      visitedAddresses.add(address);
      newTrace.addEvent(event);
    }
  }
}

private static void createCombinedTrace ( final TraceList newTrace , final List < TraceList > traces , final Set < BreakpointAddress > addresses ) { final Set < BreakpointAddress > visitedAddresses = new LinkedHashSet < BreakpointAddress > ( ) ; for ( final TraceList trace : traces ) { for ( final ITraceEvent event : trace ) { final BreakpointAddress address = event . getOffset ( ) ; if ( ! addresses . contains ( address ) ) { continue ; } if ( visitedAddresses . contains ( address ) ) { continue ; } visitedAddresses . add ( address ) ; newTrace . addEvent ( event ) ; } } }
fills a combined trace from the events of multiple input traces .
