ThreeState (@NotNull final PsiElement element, final PsiElement referenceOrReferencedElement) { if (isEnumConstantReference(element, referenceOrReferencedElement)) return ThreeState.NO; return super.isAcceptableReferencedElement(element, referenceOrReferencedElement); }