public void removeDialogHandler(@NotNull CefDialogHandler handler, @NotNull CefBrowser browser) {
    myDialogHandler.remove(handler, browser, () -> myCefClient.removeDialogHandler());
  }
public void removeDialogHandler(@NotNull CefDialogHandler handler, @NotNull CefBrowser browser)