String () { PsiJavaCodeReferenceElement result = myRef; while (true) { PsiElement parent = result.getParent(); if (!(parent instanceof PsiJavaCodeReferenceElement)) { break; } result = (PsiJavaCodeReferenceElement)parent; } return result.getQualifiedName(); }