void () { myFixture.configureByFile("deprecation/deprecatedModule.py"); PyFile file = (PyFile)myFixture.getFile(); assertEquals("the deprecated module is deprecated; use a non-deprecated module instead", file.getDeprecationMessage()); GCWatcher.tracking(((PsiFileImpl)file).getStub(), ((PsiFileImpl)file).getTreeElement()).ensureCollected(); assertNotParsed(file); assertEquals("the deprecated module is deprecated; use a non-deprecated module instead", file.getDeprecationMessage()); assertNotParsed(file); }