private @Nullable MyInputMethodHandler asMyHandler() {
      return myInputMethodRequests instanceof MyInputMethodHandler handler ? handler : null;
    }
private @Nullable MyInputMethodHandler asMyHandler()