void () { final String s = """ class X { void a() { return; } int b() { return 1; } Object c() { return new Object(); } }"""; assertEquals("find return without value", 1, findMatchesCount(s, "return '_x{0,0};")); assertEquals("find return with value", 2, findMatchesCount(s, "return '_x;")); assertEquals("find returns", 3, findMatchesCount(s, "return;")); }