void () { CodeInsightSettings settings = CodeInsightSettings.getInstance(); boolean indent = settings.SMART_INDENT_ON_ENTER; settings.SMART_INDENT_ON_ENTER = false; boolean stub = settings.JAVADOC_STUB_ON_ENTER; settings.JAVADOC_STUB_ON_ENTER = false; try { configureByFile("/codeInsight/enterAction/settings/NoJavadocStub.java"); performAction(); checkResultByFile(null, "/codeInsight/enterAction/settings/NoJavadocStub_after.java", true); // side effect... } finally { settings.SMART_INDENT_ON_ENTER = indent; settings.JAVADOC_STUB_ON_ENTER = stub; } }