void () { myFixture.copyDirectoryToProject("importManySourceRoots", ""); runWithSourceRoots(Lists.newArrayList(myFixture.findFileInTempDir("root1"), myFixture.findFileInTempDir("root2")), () -> { final PsiFile psiFile = myFixture.configureByFile("root1/pkg/a.py"); final PsiReference ref = PyResolveTestCase.findReferenceByMarker(psiFile); assertInstanceOf(ref, PsiPolyVariantReference.class); final List<PsiElement> elements = PyUtil.multiResolveTopPriority((PsiPolyVariantReference)ref); assertEquals(0, elements.size()); }); }