public void keyPressed(KeyEvent e) {
for (AnAction action : actions) {
if (KeyUtil.match(action.getShortcutSet().getShortcuts(), e)) {
DataContext dataContext = DataManager.getInstance().getDataContext(getComponent());
ActionManager actionManager = ActionManager.getInstance();
AnActionEvent actionEvent = new AnActionEvent(null, dataContext, "", action.getTemplatePresentation(), actionManager, 2);
action.actionPerformed(actionEvent);
e.consume();
return;
}
}