private bool HadWarning(string matchStr = null) { return HadErrorOrWarning(matchStr, _warningMessages); }