public static bool ContainsIndex(this ParserRuleContext context, int index) { return(context.GetStartIndex() <= index && index <= context.GetStopIndex()); }