boolean (GrStatement statement, boolean testForSuper, boolean testForThis) { if (!(statement instanceof GrConstructorInvocation expr)) return false; return (testForSuper && expr.isSuperCall()) || (testForThis && expr.isThisCall()); }