This happens when I edit the file in remote mode and only for test code that is autogenerated by Intellij. Even while displaying the error, the tests in the module run fine. Sometimes, after all tests have passed and the file is reopened at a later time, these errors go away on their own.