void (char c, int keyCode, @JdkConstants.InputEventMask int modifiers) { ActionDescriptor lastAction = myActions.size() > 0 ? myActions.get(myActions.size() - 1) : null; if (lastAction instanceof TypedDescriptor) { ((TypedDescriptor)lastAction).addChar(c, keyCode, modifiers); } else { myActions.add(new TypedDescriptor(c, keyCode, modifiers)); } }