void () { final String s = """ class X { void m() { var s = "hi"; String t = "bye"; } }"""; assertEquals("find var statement", 1, findMatchesCount(s, "var '_x;")); assertEquals("find String variables", 2, findMatchesCount(s, "String '_x;")); assertEquals("find String variables 2", 2, findMatchesCount(s, "var '_x = \"'_y\";")); }