void (@JdkConstants.InputEventMask int modifiers) { if (myComponent instanceof JList) moveUp((JList<?>)myComponent, modifiers, isCycleScrolling()); else if (myComponent instanceof JTable) moveUp((JTable)myComponent, modifiers, isCycleScrolling()); else throw new IllegalArgumentException("MoveUp is not implemented for " + myComponent.getClass()); }