private void WriteSummary(LicenseSummary p)
 {
     Lines.Add("License: " + p.LicenseUrl);
     Lines.Add("Packages with this license:");
     foreach (var ps in p.Packages)
     {
         Lines.Add(IndentWhitespaces + ps.Name + " (" + ps.Version + ")");
     }
     WriteUsedIn(p.UsedIn);
     Lines.Add("");
 }
        private void UpdateExistingSummaryEntry(LicenseSummary summary, PackageInfo i)
        {
            if (!summary.Packages.Any(p => p.Name == i.Name))
            {
                summary.Packages.Add(new PackageSummary
                {
                    Name    = i.Name,
                    Version = i.Version
                });
            }

            summary.UsedIn = summary.UsedIn.CombineUnique(i.UsedIn).ToList();
        }