public MatchContext <T> WithGroupId(int id, MatchReference matchReference) => new MatchContext <T>(this, id, matchReference);
MatchContext(MatchContext <T> context, int id, MatchReference matchReference) { InputSequence = context.InputSequence; Index = context.Index; MatchReferences = context.MatchReferences.Add(id, matchReference); }