void () { // Inspired by IDEA-62997 getSettings().METHOD_BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE_SHIFTED; String precededByJavadoc = """ /** * test */ public int getFoo() { return foo; }"""; String precededBySingleLineComment = """ // test public int getFoo() { return foo; }"""; String precededByMultiLineComment = """ /* test */ public int getFoo() { return foo; }"""; doClassTest(precededByJavadoc, precededByJavadoc); doClassTest(precededBySingleLineComment, precededBySingleLineComment); doClassTest(precededByMultiLineComment, precededByMultiLineComment); }