void () { String s = "class Foo {} class Bar {} enum X {}"; assertEquals(1, findMatchesCount(s, "enum 'x {}")); String in = """ enum E { A(1), B(2), C(3) }"""; assertEquals(1, findMatchesCount(in, "enum '_E { 'A(2) }")); assertEquals(0, findMatchesCount(in, "enum '_E { 'A('_x{0,0}) }")); assertEquals(0, findMatchesCount(in, "enum '_E { 'A(2) {} }")); }