private boolean isEnumConst(@Nonnull FieldMember field) {
		String descriptor = field.getDescriptor();
		if (descriptor.length() < 3) return false;

		String type = descriptor.substring(1, descriptor.length() - 1);

		// Must be same type as declaring class.
		if (!type.equals(classInfo.getName())) return false;

		// Must have enum const flags
		return AccessFlag.hasAll(field.getAccess(), AccessFlag.ACC_STATIC, AccessFlag.ACC_FINAL);
	}
@param field
		Field to check.

@return {@code true} when it is an enum constant of the {@link #classInfo current class}.
recaf-core/src/main/java/software/coley/recaf/services/decompile/fallback/print/ClassPrinter.java