@Override
    public void actionPerformed(@NotNull AnActionEvent e) {
      Editor editor = e.getData(CommonDataKeys.EDITOR);
      if (editor != null) {
        PreviewTextModel textModel = editor.getUserData(TEXT_MODEL_KEY);
        if (textModel != null) {
          textModel.resetToDefault();
          WriteCommandAction.runWriteCommandAction(editor.getProject(), null, null, () -> {
            editor.getDocument().setText(textModel.getText());
            ((EditorEx)editor).reinitSettings();
          });
        }
      }
    }
@Override
    public void actionPerformed(@NotNull AnActionEvent e)