docs: public static int asIntExactly(Number number) {
          Class clazz = number.getClass();
  
          if (isLongRepresentableExceptLong(clazz)) {
              return number.intValue();
          } else if (clazz == Long.class) {
              int intValue = number.intValue();
              if (number.longValue() == (long) intValue) {
                  return intValue;
              }
          } else if (isDoubleRepresentable(clazz)) {
              int intValue = number.intValue();
              if (equalDoubles(number.doubleValue(), (double) intValue)) {
                  return intValue;
              }
          }
  
          throw new IllegalArgumentException("Can't represent " + number + " as int exactly");
      }