protected void appendEnumConsts(@Nonnull StringBuilder code) {
		// Enum constants must come first if the class is an enum.
		if (AccessFlag.isEnum(classAccess)) {
			int enumConsts = 0;
			for (FieldMember field : fields) {
				if (isEnumConst(field)) {
					if (enumConsts > 0)
						code.append(", ");
					code.append(field.getName());
					enumConsts++;
				}
			}
			code.append(';');
		}
	}
Appends enum constants defined in {@link #fields} to the class.
Must be called before {@link #appendFields(StringBuilder)}.

@param code
		Class code to append enum constants to.
recaf-core/src/main/java/software/coley/recaf/services/compile/stub/ClassStubGenerator.java