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