[wsm] IJPL-251581: Do not create exception second time

(cherry picked from commit 56344d5e9167b0f2f84148ea22f70255df0daad6)

IJ-CR-216025

GitOrigin-RevId: d3d4958ac8e40496d8e2c5d3daa2cf176d423074
This commit is contained in:
Konstantin Nisht
2026-07-30 10:49:27 +00:00
committed by intellij-monorepo-bot
parent 071663c940
commit cd6c823e25
@@ -368,7 +368,7 @@ open class WorkspaceModelImpl : WorkspaceModelInternal {
if (stackTrace.size < 6) {
return@addMeasuredTime
}
val stackStraceIterator = RuntimeException().stackTrace.iterator()
val stackStraceIterator = stackTrace.iterator()
// Skip six methods of the current update
repeat(6) { stackStraceIterator.next() }
while (stackStraceIterator.hasNext()) {