@Override
  public @Nullable PsiElement getContext() {
    PsiReference contextRef = getContextReference();
    assert contextRef != this : getCanonicalText();
    return contextRef != null ? contextRef.resolve() : null;
  }
@Override
  public @Nullable PsiElement getContext()