void ReportAllWarningsButLastToConsole() { var warnings = Warnings.Distinct().ToList(); RemoveLastItem(warnings); warnings.ForEach(warning => consoleMonitor.ReportWarning(warning)); }