public static IList<ExecutionContext> GetActiveExecutionContexts( ExecutionContext[] executionContexts, DivergenceStackEntry divergenceStackEntry) { return executionContexts.Where(x => divergenceStackEntry.ActiveMask[x.Index]).ToList(); }