void () { assert YAMLEditorOptions.getInstance().isUseSmartPaste(); try { YAMLEditorOptions.getInstance().setUseSmartPaste(false); doTest("next.subKey"); } finally { YAMLEditorOptions.getInstance().setUseSmartPaste(true); } }