void () { myTestFileName = ORDINARY_PACK_DIR + "/script.py"; PsiFile currentFile = prepareFile(); runWithSourceRoots(List.of(myFixture.findFileInTempDir("ordinaryPackage")), () -> { PsiManager psiManager = myFixture.getPsiManager(); PsiElement element = doResolve(currentFile); assertInstanceOf(element, PyFile.class); assertTrue(psiManager.isInProject(element)); }); }