public JBCefClient addPermissionHandler(@NotNull CefPermissionHandler handler, @NotNull CefBrowser browser) {
    return myPermissionHandler.add(handler, browser, () -> {
      myCefClient.addPermissionHandler(new CefPermissionHandler() {

        @Override
        public boolean onRequestMediaAccessPermission(CefBrowser browser,
                                                      CefFrame frame,
                                                      String requesting_url,
                                                      int requested_permissions,
                                                      CefMediaAccessCallback callback) {
          Boolean res = myPermissionHandler.handleBooleanFirst(browser, handler -> {
            return handler.onRequestMediaAccessPermission(browser, frame, requesting_url, requested_permissions, callback);
          });
          return ObjectUtils.notNull(res, false);
        }
      });
    });
  }
public JBCefClient addPermissionHandler(@NotNull CefPermissionHandler handler, @NotNull CefBrowser browser)