private def clearRefIfPathExists()

in scala-repl/src/main/scala/org/jetbrains/ztools/scala/reference/ReferenceManager.scala [38:43]


  private def clearRefIfPathExists(path: String): Unit = {
    if (refInvMap.contains(path)) {
      val tree = refInvMap.subtree(path)
      tree.forEach(refMap.remove(_: ReferenceWrapper))
    }
  }