void (FocusEvent event) { if (mySettingsProvider.overrideIdeShortcuts()) { myActionsToSkip = setupActionsToSkip(); myEventDispatcher.register(); } else { myActionsToSkip = null; myEventDispatcher.unregister(); } if (GeneralSettings.getInstance().isSaveOnFrameDeactivation()) { ApplicationManager.getApplication().invokeLater(() -> FileDocumentManager.getInstance().saveAllDocuments(), ModalityState.nonModal()); } }