void () { List<PsiElement> results = doMultiResolve(); assertSize(2, results); // func and import stmt PsiElement funcElt = results.get(0); assertTrue("is PyFunction?", funcElt instanceof PyFunction); assertEquals("named 'func'?", "func", ((PyFunction)funcElt).getName()); PsiElement importElt = results.get(1); assertTrue("is import?", importElt instanceof PyImportElement); }