void () { CodeInsightSettings settings = CodeInsightSettings.getInstance(); boolean old = settings.INSERT_BRACE_ON_ENTER; settings.INSERT_BRACE_ON_ENTER = false; try { configureByFile("/codeInsight/enterAction/settings/NoInsertBrace.java"); performAction(); checkResultByFile("/codeInsight/enterAction/settings/NoInsertBrace_after.java"); } finally { settings.INSERT_BRACE_ON_ENTER = old; } }