Description
Generate test action is enabled in editor for the file located in test source root
To Reproduce
- Create a class with methods under test in test source root
- An action is disabled in project tree, but enabled in editor
- Click OK in dialog window
Expected behavior
Action is disabled, no generation process starts
Actual behavior
Action is enabled, generation process fails with an exception
java.util.NoSuchElementException: Collection contains no element matching the predicate.
at org.utbot.framework.util.SootUtilsKt.jimpleBody(SootUtils.kt:172)
at org.utbot.engine.UtBotSymbolicEngine.<init>(UtBotSymbolicEngine.kt:151)
at org.utbot.framework.plugin.api.UtBotTestCaseGenerator.createSymbolicEngine(UtBotTestCaseGenerator.kt:273)
at org.utbot.framework.plugin.api.UtBotTestCaseGenerator.access$createSymbolicEngine(UtBotTestCaseGenerator.kt:51)
at org.utbot.framework.plugin.api.UtBotTestCaseGenerator$generateTestCases$4$1$1.invokeSuspend(UtBotTestCaseGenerator.kt:161)
Visual proofs (screenshots, logs, images)

Description
Generate test action is enabled in editor for the file located in test source root
To Reproduce
Expected behavior
Action is disabled, no generation process starts
Actual behavior
Action is enabled, generation process fails with an exception
Visual proofs (screenshots, logs, images)