void () { CodeInsightSettings settings = CodeInsightSettings.getInstance(); boolean old = settings.CLOSE_COMMENT_ON_ENTER; settings.CLOSE_COMMENT_ON_ENTER = false; try { doTextTest("java", "/*<caret>", "/*\n"); } finally { settings.CLOSE_COMMENT_ON_ENTER = old; } }