void (SwipeEvent event) { ActionManager actionManager = ActionManager.getInstance(); AnAction back = actionManager.getAction("Back"); if (back == null) return; actionManager.tryToExecute(back, createMouseEventWrapper(myFrame), null, null, false); }