docs: public static <K, V> Duration getExpiryForCreation(K key, V value, ExpiryPolicy<? super K, ? super V> expiry) {
      Duration duration;
      try {
        duration = expiry.getExpiryForCreation(key, value);
      } catch (RuntimeException e) {
        LOG.error("Expiry computation caused an exception - Expiry duration will be 0", e);
        return Duration.ZERO;
      }
  
      if (duration == null) {
        LOG.error("Expiry for creation can't be null - Expiry duration will be 0");
        return Duration.ZERO;
      }
  
      if (Duration.ZERO.compareTo(duration) >= 0) {
        return Duration.ZERO;
      }
  
      return duration;
    }