in extractor-legacy-0.13/src/main/scala/org/jetbrains/sbt/extractors/DependenciesExtractor.scala [493:510]
private def isProjectDependencyInSourceConfiguration(
project: ProjectRef,
configuration: String,
projectToConfigurations: Map[ProjectRef, ProjectConfigurations]
): Boolean =
projectToConfigurations.get(project)
.fold(Seq.empty[String])(t => t.source ++ t.test)
.contains(configuration)
private def throwExceptionIfUpdateFailed(result: Result[Map[sbt.Configuration,Keys.Classpath]]): Map[sbt.Configuration, Keys.Classpath] =
result match {
case Value(classpath) =>
classpath
case Inc(incomplete) =>
val cause = Incomplete.allExceptions(incomplete).headOption
cause.foreach(c => throw c)
Map.empty
}