public static boolean isEnumField(PsiField field) {
      final PsiClass aClass = PsiUtil.resolveClassInClassTypeOnly(field.getType());
      return (aClass != null) && aClass.isEnum();
    }
public static boolean isEnumField(PsiField field)