@Override
  public boolean isSelected(@NotNull AnActionEvent e) {
    Editor editor = e.getData(CommonDataKeys.EDITOR);
    return editor != null && editor.getSettings().isUseSoftWraps();
  }
@Override
  public boolean isSelected(@NotNull AnActionEvent e)