boolean (@NotNull PsiElement at) { PsiElement parent = at.getParent(); return parent instanceof GrReferenceElement && ((GrReferenceElement<?>)parent).getReferenceNameElement() == at && ((GrReferenceElement<?>)parent).resolve() == null; }