private IDictionary <string, IList <string> > GetChangelogEntriesForPullRequests( [NotNull][ItemNotNull] IReadOnlyList <PullRequest> pullRequests) { IDictionary <string, List <string> > changelogEntries = new Dictionary <string, List <string> >(); foreach (PullRequest pullRequest in pullRequests) { IDictionary <string, IList <string> > changelogEntriesForPullRequest = markdownParser.GetChangelogEntries(pullRequest.Body); Merge(changelogEntriesForPullRequest, changelogEntries); } return(changelogEntries.ToDictionary(dict => dict.Key, dict => dict.Value as IList <string>)); }