code: @Deprecated
      public static boolean isInfinityAndNotNaN(Number number) {
          if (Double.class == number.getClass() || Float.class == number.getClass()) {
              double dValue = number.doubleValue();
              if (!Double.isNaN(dValue) && Double.isInfinite(dValue)) {
                  return true;
              }
          }
          return false;
      }
docs: Just to don't break the compatibility.
  Don't use it
  @param number the amount, not null
  @deprecated Will be removed.