It'd be something like:
```java
method("onLayout").withParameterTypes(boolean.class, int.class, int.class, int.class, int.class)
    .in(realView).invoke(true, l, t, r, b);