boolean (@NotNull AnActionEvent e) { final InputEvent event = e.getInputEvent(); if (!(event instanceof KeyEvent)) { return false; } final KeyStroke keyStroke = KeyStroke.getKeyStrokeForEvent((KeyEvent)event); return myUpDownKeystrokes.contains(keyStroke); }