void () { String source = """ class X { @Deprecated void a() {} void b() {} void c() { a(); b(); b(); } }"""; assertEquals("find calls to deprecated methods", 1, findMatchesCount(source, "'_instance?.'_call:[ref( \"@Deprecated void '_x();\" )] ()")); assertEquals("find calls to non-deprecated methods", 2, findMatchesCount(source, "'_instance?.'_call:[ref( \"@'_Anno{0,0} void '_x();\" )] ()")); }