void () { EditorSettingsExternalizable editorSettings = EditorSettingsExternalizable.getInstance(); boolean savedValue = editorSettings.isCamelWords(); editorSettings.setCamelWords(true); try { doTest("abc<caret>", "<caret>"); } finally { editorSettings.setCamelWords(savedValue); } }