private static void invoke(View view, String methodName) {
    invokeUnchecked(view, methodName);
  }
Similar to dispatchAttach, except dispatchest the corresponding detach.
core/src/main/java/com/facebook/testing/screenshot/WindowAttachment.java