void (boolean scheduleSave) { Window window = getWindow(); if (window != null) { UIUtil.stopFocusedEditing(window); } if (myEditor.apply()) { if (scheduleSave) { SaveAndSyncHandler.getInstance().scheduleSave(new SaveAndSyncHandler.SaveTask(null, /* forceSavingAllSettings = */ true)); } super.doOKAction(); } }