boolean () { PsiClassStub<?> stub = getGreenStub(); if (stub != null) { return stub.isEnum(); } ASTNode keyword = getNode().findChildByRole(ChildRole.CLASS_OR_INTERFACE_KEYWORD); return keyword != null && keyword.getElementType() == JavaTokenType.ENUM_KEYWORD; }