public @Nullable PsiElement getUpToDateReferencedElement() {
    return myReferencedElementPointer == null ? null : myReferencedElementPointer.getElement();
  }
public @Nullable PsiElement getUpToDateReferencedElement()