void () { runWithLanguageLevel(LanguageLevel.getLatest(), () -> { myFixture.copyDirectoryToProject(getTestDirectoryPath(), ""); myFixture.configureFromTempProjectFile("a.py"); VirtualFile foreignVFile = myFixture.findFileInTempDir("b.py"); assertNotNull(foreignVFile); PsiFile foreignFilePsi = PsiManager.getInstance(myFixture.getProject()).findFile(foreignVFile); assertNotNull(foreignFilePsi); assertNotParsed(foreignFilePsi); //noinspection ResultOfMethodCallIgnored foreignFilePsi.getNode(); assertNotNull(((PsiFileImpl)foreignFilePsi).getTreeElement()); configureInspection(); }); }