String (@NotNull PsiJavaCodeReferenceElement referenceElement) { PsiElement parent = referenceElement.getParent(); if (parent instanceof PsiJavaCodeReferenceElement) { return ((PsiJavaCodeReferenceElement)parent).getReferenceName(); } return super.getRequiredMemberName(referenceElement); }