in reactor/Core/src/jetbrains/mps/logic/reactor/core/internal/ReteRuleMatcherImpl.kt [641:646]
override fun next(): T {
val crep = current.find()
if (!crep.hasNext()) throw NoSuchElementException()
this.current = crep.next()
return (current as DataJoint).value
}