void () { doTextTest("java", """ public class Test { public static void main(String[] args) { try (Reader r1 = null; <caret>Reader r2 = null) {} } } """, """ public class Test { public static void main(String[] args) { try (Reader r1 = null;\s Reader r2 = null) {} } } """); }