void () { String in = """ class X {} class Y {} class Z {} record R() {} record T(int i, int j) {} record S(double x, double y) {}"""; assertEquals("find empty record", 1, findMatchesCount(in, "record '_X() {}")); assertEquals("find two component records", 2, findMatchesCount(in, "record '_X('_T '_t{2,2}) {}")); assertEquals("find all classes including records", 6, findMatchesCount(in, "class '_X {}")); }