code: public static TraceEvent getType(List<TraceEvent> events, int... types)
     {
        return getType(events, null, types);
     }
docs: Get a specific event type
  @param events The events
  @param types The types
  @return The first event type found; otherwise <code>null</code> if none