void (ActionEvent e) { NationalKeyboardSupport.getInstance().setEnabled(nationalKeyboardsSupport.isSelected()); try { VMOptions.setProperty(NationalKeyboardSupport.getVMOption(), Boolean.toString(NationalKeyboardSupport.getInstance().getEnabled())); ApplicationManager.getApplication().invokeLater( () -> ApplicationManager.getApplication().restart(), ModalityState.nonModal() ); } catch (IOException x) { Messages.showErrorDialog(keymapPanel, IoErrorText.message(x), OptionsBundle.message("cannot.save.settings.default.dialog.title")); } }