void () { // Inspired by IDEA-22808 getSettings().METHOD_ANNOTATION_WRAP = CommonCodeStyleSettings.WRAP_ALWAYS; String text = """ @Test//my_comment public void foo() { }"""; // Expecting the code to be left as-is doClassTest(text, text); }