void () { String source = """ class X { void x() { y(); } void y() {} void z() { z(); } void a() { a(); } }"""; String pattern = """ void '_a() { '_a(); }"""; assertEquals(2, findMatchesCount(source, pattern)); }