void () { getSettings().getRootSettings().FORMATTER_TAGS_ENABLED = true; String prefix = """ import java.lang.annotation.*; //@formatter:off @interface A { } @Target({ElementType.TYPE_USE}) @interface TA { int value() default 0; } //@formatter:on """; doTextTest( prefix + "interface C {\n" + " @TA(0)String m();\n" + " @A @TA(1) @TA(2)String m();\n" + " @A public @TA String m();\n" + "}", prefix + "interface C {\n" + " @TA(0) String m();\n\n" + " @A\n" + " @TA(1) @TA(2) String m();\n\n" + " @A\n" + " public @TA String m();\n" + "}"); }