public static AssemblyModel ToAssemblyModel(this AssemblyInformation assembly, IEnumerable <AssemblyLink> links) { var referenceProvider = new Dictionary <string, ReferenceModel>(); var references = links.Select(x => x.ToReferenceModel(referenceProvider)).ToList(); foreach (var item in references) { referenceProvider.Add(item.AssemblyFullName, item); } return(assembly.ToAssemblyModel(referenceProvider)); }