void () { CodeInsightSettings settings = CodeInsightSettings.getInstance(); boolean oldValue = settings.SMART_INDENT_ON_ENTER; try { doTest(JavaFileType.INSTANCE, '\n'); } finally { settings.SMART_INDENT_ON_ENTER = oldValue; } }