@Override
  public void setSelected(@NotNull AnActionEvent e, boolean state) {
    Editor editor = e.getData(CommonDataKeys.EDITOR);
    if (editor != null) AbstractToggleUseSoftWrapsAction.toggleSoftWraps(editor, SoftWrapAppliancePlaces.PREVIEW, state);
  }
@Override
  public void setSelected(@NotNull AnActionEvent e, boolean state)