void () { String source = """ class A { String value; A(String v) { value = (value); System.out.println(((2))); System.out.println(2); } }"""; String pattern1a = "'_value='_value"; assertEquals(1, findMatchesCount(source, pattern1a)); String pattern1b = "System.out.println('_v);\n" + "System.out.println('_v);"; assertEquals(1, findMatchesCount(source, pattern1b)); String source2 = """ class B {{ System.out.println((3 * 8) + 2 + (((2)))); }}"""; String pattern2 = "3 * 8 + 2 + 2"; assertEquals(1, findMatchesCount(source2, pattern2)); String source3 = """ class C { static int foo() { return (Integer.parseInt("3")); } }"""; String pattern3 = "Integer.parseInt('_x)"; assertEquals(1, findMatchesCount(source3, pattern3)); String source4 = """ class X {{ (System.out).println(1); }}"""; String pattern4 = "System.out.println('_x);"; assertEquals(1, findMatchesCount(source4, pattern4)); }