protected def wrap()

in scala-repl/src/main/scala/org/jetbrains/ztools/scala/handlers/impls/AbstractTypeHandler.scala [39:49]


  protected def wrap(obj: Any, tpe: String): mutable.Map[String, Any] = mutable.Map[String, Any](
    ResNames.VALUE -> Option(obj).orNull,
    ResNames.TYPE -> tpe
  )

  protected def checkTimeoutError(name: String, startTime: Long, timeout: Int): Boolean = {
    val isTimeout = System.currentTimeMillis() - startTime > timeout
    if (isTimeout)
      timeoutErrors += f"Variable $name collect timeout exceed ${timeout}ms."
    isTimeout
  }