void () { Map<String, PsiElement> marks = loadTest(); final PsiElement originalElement = marks.get("<the_ref>"); final PsiElement docOwner = ((PyReferenceExpression)originalElement.getParent()).getReference().resolve(); checkByHTML(myProvider.getQuickNavigateInfo(docOwner, originalElement)); }