private Settings GetNextLineSettings() { if (_isIdle) { return(_pathPatterns.DefaultSettings); } var settings = _pathPattern.GetNextValue(); while (settings == null) { _pathPattern = _pathPatterns.GetNextPathPattern(); settings = _pathPattern.GetNextValue(); } return(settings); }