private static boolean isInEnumAnnotationParameter(PsiElement position, ExpectedTypeInfo firstInfo) {
    return PsiTreeUtil.getParentOfType(position, PsiNameValuePair.class) != null && PreferByKindWeigher.isEnumClass(firstInfo);
  }
private static boolean isInEnumAnnotationParameter(PsiElement position, ExpectedTypeInfo firstInfo)