void () { boolean surround = CodeInsightSettings.getInstance().SURROUND_SELECTION_ON_QUOTE_TYPED; try { CodeInsightSettings.getInstance().SURROUND_SELECTION_ON_QUOTE_TYPED = true; doTest("<div><selection><div></div></selection></div>", '(', "<div>(<div></div>)</div>"); } finally { CodeInsightSettings.getInstance().SURROUND_SELECTION_ON_QUOTE_TYPED = surround; } }