protected virtual void OnNestingLevelChanged() { this.nestingLevel = this.NestingLevel == AutomaticNestingLevel ? 0 : this.NestingLevel; this.Formatter = this.FormatterProvider(this.nestingLevel); }