void () { final MyElement element = createElement("<a><psi-class>java.lang.String</psi-class></a>"); assertReference(element.getPsiClass(), PsiType.getJavaLangString(getPsiManager(), GlobalSearchScope.allScope(getProject())).resolve(), element.getPsiClass().getXmlTag().getValue().getTextRange().getEndOffset() - 1); }