in src/main/kotlin/org/jetbrains/teamcity/github/GitHubWebHookSuggestion.kt [19:31]
fun <T : VcsRoot> splitRoots(vcsRoots: Collection<T>): MultiMapToSet<GitHubRepositoryInfo, T> {
val map = MultiMapToSet<GitHubRepositoryInfo, T>()
for (root in vcsRoots) {
val info = Util.getGitHubInfo(root) ?: continue
// Ignore roots with unresolved references in url
if (info.isHasParameterReferences()) continue
map.add(info, root)
}
return map
}