docs: public static int safeMultiply(int val1, int val2) {
          long total = (long) val1 * (long) val2;
          if (total < Integer.MIN_VALUE || total > Integer.MAX_VALUE) {
            throw new ArithmeticException("Multiplication overflows an int: " + val1 + " * " + val2);
          }
          return (int) total;
      }