void () { myFixture.copyDirectoryToProject("resolve/" + getTestName(false), ""); myFixture.configureByFile("main.py"); final PsiElement element = PyResolveTestCase.findReferenceByMarker(myFixture.getFile()).resolve(); assertInstanceOf(element, PyFunction.class); assertEquals("foo.pyi", element.getContainingFile().getName()); }