List<PsiElement> () { final PsiFile psiFile = prepareFile(); final PsiReference ref = PyResolveTestCase.findReferenceByMarker(psiFile); if (ref instanceof PsiPolyVariantReference) { return ContainerUtil.map(((PsiPolyVariantReference)ref).multiResolve(false), ResolveResult::getElement); } return Collections.singletonList(ref.resolve()); }