private static int getCursorModeHelper(ModifierKey key, int shift) { return key.getUIMode() << shift; }