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