@Override
    public @NotNull IntentionPreviewInfo getPreview() {
      if (mySurrounder instanceof ModCommandSurrounder modCommandSurrounder) {
        PsiFile file = PsiDocumentManager.getInstance(myProject).getPsiFile(myEditor.getDocument());
        if (file != null) {
          ActionContext context = ActionContext.from(myEditor, file);
          ModCommand command = modCommandSurrounder.surroundElements(context, myElements);
          return ModCommandExecutor.getInstance().getPreview(command, context);
        }
      }
      return IntentionPreviewInfo.EMPTY;
    }
@Override
    public @NotNull IntentionPreviewInfo getPreview()