// Prevents any recursive calls from taking place.
 // This method will be inlined by the JIT.
 internal static void CheckForRecursiveCalls(this CyclicDependencyValidator validator)
 {
     if (validator != null)
     {
         validator.Check();
     }
 }