public static WaitForSignalsEvent WaitForSignalsEvent(this HistoryEvent historyEvent, IEnumerable <HistoryEvent> allEvents) { if (historyEvent.IsWaitForSignalsEvent()) { return(new WaitForSignalsEvent(historyEvent, allEvents)); } return(null); }