void () { final String s = """ class X { void x() { String x = null; x: System.out.println(); y: System.out.println(); } }"""; assertEquals("Find statement labels", 4, findMatchesCount(s, "x")); assertEquals("Find statement label variable", 2, findMatchesCount(s, "'_l : '_s;")); }