void () { setSomethingChanged(true); if (myEditor != null) { if (ApplicationManager.getApplication().isUnitTestMode()) { updateEditor(true); } else { UiNotifyConnector.doWhenFirstShown(myEditor.getComponent(), () -> addUpdatePreviewRequest()); } } else { applySettingsToModel(); } }