@Override
  public @Nls @Nullable String generateHoverDoc(@NotNull PsiElement element, @Nullable PsiElement originalElement) {
    if (originalElement != null && PsiTreeUtil.isAncestor(element, originalElement, false)) {
      return null;
    }
    return generateDoc(element, originalElement);
  }
@Override
  public @Nls @Nullable String generateHoverDoc(@NotNull PsiElement element, @Nullable PsiElement originalElement)