void () { String s1 = """ public class DiallingNumber { static { int a = 1; } static { int b = 1; } { int c = 2; } }"""; assertEquals("Static / instance initializers", 2, findMatchesCount(s1, "static { '_t*; }")); assertEquals("Static / instance initializers", 1, findMatchesCount(s1, "@Modifier(\"Instance\") { '_t*; }")); assertEquals("Static / instance initializers", 3, findMatchesCount(s1, "{ '_t*; }")); }