void (CefBrowser browser, CefFrame frame, CefContextMenuParams params, CefMenuModel model) { myContextMenuHandler.handle(browser, handler -> { handler.onBeforeContextMenu(browser, frame, params, model); }); }