void (final char c) { boolean old = CodeInsightSettings.getInstance().AUTOINSERT_PAIR_BRACKET; CodeInsightSettings.getInstance().AUTOINSERT_PAIR_BRACKET = false; try { doTest(c); } finally { CodeInsightSettings.getInstance().AUTOINSERT_PAIR_BRACKET = old; } }