void (@NotNull ArrayList<? super KeyStroke> list, @Nullable Iterable<? extends AWTKeyStroke> strokes) { if (strokes != null) { for (AWTKeyStroke stroke : strokes) { int keyCode = stroke.getKeyCode(); if (keyCode != KeyEvent.VK_UNDEFINED) { list.add(stroke instanceof KeyStroke ? (KeyStroke)stroke : KeyStroke.getKeyStroke(keyCode, stroke.getModifiers(), stroke.isOnKeyRelease())); } } } }