void () { CodeInsightSettings settings = CodeInsightSettings.getInstance(); boolean oldValue = settings.AUTOINSERT_PAIR_BRACKET; try { settings.AUTOINSERT_PAIR_BRACKET = false; doTest("<html><caret></html>", "md_hack", "<", "<html><<caret></html>"); } finally { settings.AUTOINSERT_PAIR_BRACKET = oldValue; } }