boolean (@NotNull KeyEvent e) { BooleanFunction<? super KeyEvent> handler = myKeyEventHandler; if (handler != null && handler.fun(e)) { return true; } if (isCloseRequest(e) && myCancelKeyEnabled && !mySpeedSearch.isHoldingFilter()) { if (mySpeedSearchFoundInRootComponent != null && mySpeedSearchFoundInRootComponent.isHoldingFilter()) { mySpeedSearchFoundInRootComponent.reset(); } else { cancel(e); } return true; } return false; }