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