@Override
  public final @NotNull IntentionPreviewInfo generatePreview(@NotNull ActionContext context) {
    E element = getElement(context);
    if (element == null) return IntentionPreviewInfo.EMPTY;
    return generatePreview(context, element);
  }
@Override
  public final @NotNull IntentionPreviewInfo generatePreview(@NotNull ActionContext context)