IntelliJ does not resolve imported test libraries
已回答
My IntelliJ is not resolving testing imports, thus not showing test execution icon and showing the following annoying syntax highlights:

Executing tests from terminal work, as well as triggering them through the right click on the corresponding directory:

How can I make it resolve the imports?
I have already invalidated the cache, I even deleted the project and stared an installation from scratch. But, no lucky so far.
The project has multiple applets, and it uses Gradle, it works on other computers.
IDE Info
IntelliJ IDEA 2023.1 (Ultimate Edition)
Build #IU-231.8109.175, built on March 28, 2023
Runtime version: 17.0.6+10-b829.5 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
请先登录再写评论。
Does the issue occur with the default IDE Settings? File | Manage IDE Settings | Restore Default Settings...: https://i.imgur.com/kbrkC7w.png.
Wrong file types can cause it: https://stackoverflow.com/a/13374653/104891.
Try a clean import from the "build.gradle" file after deleting ".idea" directory in the project root.
Delete .m2 Maven cache folder to get the fresh jars downloaded.
Check the the logs for exceptions during the import: https://intellij-support.jetbrains.com/hc/en-us/articles/207241085.
Hey Serge Baranov,
Restoring default settings followed by deleting .idea directory solved the issue.
I suppose it was some plugin then.
Thank you!