void () { String text = """ public class Hello { // @replace substring="xyz" replacement='xxx' @link substring="System" target="java.lang.System" @highlight: System.out.println("xyz"); } """; testParsing(text, """ PlainText[range=(0,21), content=public class Hello { ] PlainText[range=(132,132), content=] Replace[range=(26,68), selector=Substring[substring=xyz], region=null, replacement=xxx] Link[range=(69,119), selector=Substring[substring=System], region=null, target=java.lang.System, linkType=LINK] Highlight[range=(120,130), selector=WholeLine[], region=null, type=HIGHLIGHTED] PlainText[range=(132,161), content= System.out.println("xyz"); ] PlainText[range=(161,163), content=} ] PlainText[range=(163,163), content=]"""); testVisitor(text, null, false, """ public class Hello { // [Replace[range=(26,68), selector=Substring[substring=xyz], region=null, replacement=xxx], Link[range=(69,119), selector=Substring[substring=System], region=null, target=java.lang.System, linkType=LINK], Highlight[range=(120,130), selector=WholeLine[], region=null, type=HIGHLIGHTED]] System.out.println("xyz"); } """); }