public static IEnumerable <LogEvent> Filter(IEnumerable <LogEvent> logEvents, SinkConfiguration sinkConfiguration) { if (logEvents == null || sinkConfiguration == null) { return(EmptyLogEvents); } return(logEvents.Where(logEvent => FurtherEventPercolator.Percolate(logEvent, sinkConfiguration))); }