@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) {
    PsiElement element = myElement.retrieve();
    if (element == null) return IntentionPreviewInfo.EMPTY;
    return doPreview(project, PsiTreeUtil.findSameElementInCopy(element, file), editor);
  }
@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file)