Adapting the old infra for JUnit5.
These exceptions happen when I try to run a bit reworked but quite unchanged old testing infra on JUnit5, multiple tests at once. Running only a single test works.
My guess is that it can be because these IntelliJ methods can't be called concurrently. If anybody has clues, please share.
I don't want to continue research it myself, I will switch to researching new infra :)