docs: public static void checkFloatNotNaNOrInfinity(String parameterName,
              float data) {
          if (Float.isNaN(data) || Float.isInfinite(data)) {
              throw Exceptions.IllegalArgument(
                      "%s should never be NaN or Infinite.", parameterName);
          }
      }