private boolean isMatched(@NotNull KeyEvent e) {
    KeyStroke stroke = getKeyStroke();
    return stroke != null && stroke.getKeyCode() == e.getKeyCode() &&
           stroke.getModifiers() == UIUtil.getAllModifiers(e);
  }
private boolean isMatched(@NotNull KeyEvent e)