boolean (@NotNull String name) { PsiModifierListStub stub = getGreenStub(); if (stub != null) { return BitUtil.isSet(stub.getModifiersMask(), ModifierFlags.NAME_TO_MODIFIER_FLAG_MAP.getInt(name)); } CompositeElement tree = (CompositeElement)getNode(); IElementType type = NAME_TO_KEYWORD_TYPE_MAP.get(name); return type != null && tree.findChildByType(type) != null; }