in core/src/main/scala/org/jetbrains/sbtidea/structure/sbtImpl/TransitiveDeps.scala [16:26]
private def buildTransitiveStructure(): Map[ModuleKey, Seq[ModuleKey]] = {
report.configurations.find(_.configuration.toString().contains(configuration)) match {
case Some(conf) =>
val edges = conf.modules.flatMap(m => m.callers.map(caller => caller.caller.key -> m.module.key))
edges.foldLeft(Map[ModuleKey, Seq[ModuleKey]]()) {
case (map, (caller, mod)) if caller.name.startsWith("temp-resolve") => map + (mod -> Seq.empty) // top level dependency
case (map, (caller, mod)) => map + (caller -> (map.getOrElse(caller, Seq()) :+ mod))
}
case None => Map.empty
}
}