docs: public void capture (CaptureMode mode) {
      assert dispatchLayer != null;
      if (canceled) throw new IllegalStateException("Cannot capture canceled interaction.");
      if (capturingLayer != dispatchLayer && captured()) throw new IllegalStateException(
        "Interaction already captured by " + capturingLayer);
      capturingLayer = dispatchLayer;
      captureMode = mode;
      notifyCancel(capturingLayer, captureMode, event);
    }