KeyboardShortcut (@NonNls String s) { final KeyStroke keyStroke = KeyStroke.getKeyStroke(s); assert keyStroke != null : "Can't create key stroke for " + s; return new KeyboardShortcut(keyStroke, null); }