protected boolean isEnumConst(@Nonnull FieldMember field) {
		// This class must be an enum.
		if (!AccessFlag.isEnum(classAccess))
			return false;

		// The field must be 'public static final'
		if (!field.hasFinalModifier() || !field.hasStaticModifier() || !field.hasPublicModifier())
			return false;

		// The descriptor must be: L + className + ;
		if (field.getDescriptor().length() != className.length() + 2)
			return false;
		InstanceType fieldDesc = Types.instanceTypeFromDescriptor(field.getDescriptor());
		return fieldDesc.internalName().equals(className);
	}
@param field
		Field to check.

@return {@code true} when it represents an enum constant.
recaf-core/src/main/java/software/coley/recaf/services/compile/stub/ClassStubGenerator.java