void () { String in = """ class X { void x(boolean b) { if (b) { System.out.println(); System.out.println(); } if (b) { System.out.println(); } else { System.out.println(); } } }"""; assertEquals("Should find if without else", 1, findMatchesCount(in, "if ('_a) '_b; else '_c{0,0};")); }