private int FindMatchingCloseBrace(TokenStream<RToken> tokens, int openBraceTokenIndex) {
var position = tokens.Position;
tokens.Position = openBraceTokenIndex;
var result = TokenBraceCounter<RToken>.GetMatchingBrace(tokens,
new RToken(RTokenType.OpenCurlyBrace), new RToken(RTokenType.CloseCurlyBrace),
new RTokenTypeComparer());
tokens.Position = position;
return result;
}