public ILookup <ErrorType, Error> GetWarnings() { var all = Warnings.SelectMany(i => i.Value); return(all.ToLookup(i => i.Type)); }