void (@NotNull AnActionEvent e) { if (myGlobal) { Editor editor = getEditor(e); if (editor != null) { EditorSettings settings = editor.getSettings(); if (settings instanceof SettingsImpl && ((SettingsImpl)settings).getSoftWrapAppliancePlace() != myAppliancePlace) { e.getPresentation().setEnabledAndVisible(false); return; } } } super.update(e); }