void () { String s = """ class X { void x(String[] tt, String[] ss, String s) {} }"""; assertEquals("don't throw exception during matching", 0, findMatchesCount(s, "void '_Method('_ParameterType '_Parameter*, '_LastType[] '_lastParameter);")); String s2 = """ class X { void x() { x(); } }"""; assertEquals("don't throw exception during matching", 0, findMatchesCount(s2, """ void '_x() { '_x; }""")); }