boolean (@NotNull KeyEvent event) { if (myPopup != null && myPopup.list != null) { return super.handleUpDown(event); } if (myTextField.getText().isEmpty()) { if (myEventHandler != null) { myEventHandler.handleUpDown(event); } } else if (mySearchResultEventHandler != null) { mySearchResultEventHandler.handleUpDown(event); } return false; }