void () { String source = """ class Foo { static class Bar {} } class A {{ new Foo.Bar(); }}"""; String pattern = "new Foo.Bar();"; assertEquals("should find qualified with outer class", 1, findMatchesCount(source, pattern)); }