private void appendField(@Nonnull Printer out, @Nonnull FieldMember field) {
		StringBuilder declaration = new StringBuilder();

		// Append annotations to builder.
		String annotations = PrintUtils.annotationsToString(format, field);
		if (!annotations.isBlank())
			declaration.append(annotations).append('\n');

		// Append flags to builder.
		Collection<AccessFlag> flags = AccessFlag.getApplicableFlags(AccessFlag.Type.FIELD, field.getAccess());
		flags.remove(AccessFlag.ACC_ENUM); // We don't want to print 'enum' as a flag
		flags = AccessFlag.sort(AccessFlag.Type.FIELD, flags);
		if (!flags.isEmpty())
			declaration.append(AccessFlag.toString(flags)).append(' ');

		// Append type + name to builder.
		Type type = Type.getType(field.getDescriptor());
		String typeName = format.filter(type.getClassName());
		if (typeName.contains("."))
			typeName = typeName.substring(typeName.lastIndexOf(".") + 1);
		declaration.append(typeName).append(' ').append(format.filter(field.getName()));

		// Append value to builder.
		Object value = field.getDefaultValue();
		if (value != null) {
			switch (value) {
				case String s -> value = "\"" + format.filter(s) + "\"";
				case Float v -> value = value + "F";
				case Long l -> value = value + "L";
				default -> {
					// No change
				}
			}
			declaration.append(" = ").append(value);
		}

		// Cap it off.
		declaration.append(';');
		out.appendMultiLine(declaration.toString());
	}
Appends the given field.

@param out
		Printer to write to.
@param field
		Field to write to the given printer.
recaf-core/src/main/java/software/coley/recaf/services/decompile/fallback/print/ClassPrinter.java