StyleCop compliant BacktrackingDetector.cs