@Override
  protected @Nullable PsiElement resolveRef() {
    PsiJavaCodeReferenceElement referenceElement = (PsiJavaCodeReferenceElement)getElement();
    return referenceElement != null ? referenceElement.advancedResolve(true).getElement() : null;
  }
@Override
  protected @Nullable PsiElement resolveRef()