boolean (KeyEvent keyEvent) { int modifiers = keyEvent.getModifiers(); for (Int2IntMap.Entry entry : KEY_CODE_TO_MODIFIER_MAP.int2IntEntrySet()) { if (!(entry.getIntKey() == myModifierKeyCode || (modifiers & entry.getIntValue()) == 0)) { return true; } } return false; }