code: @Deprecated
    public static Expiry<Object, Object> timeToIdleExpiration(Duration timeToIdle) {
      if (timeToIdle == null) {
        throw new NullPointerException("Duration cannot be null");
      }
      return new TimeToIdleExpiry(timeToIdle);
    }
docs: Get a time-to-idle (TTI) {@link Expiry} instance for the given {@link Duration}.
  
  @param timeToIdle the TTI duration
  @return a TTI expiry
  
  @deprecated Use {@code org.ehcache.config.builders.ExpiryPolicyBuilder#timeToIdleExpiration(java.time.Duration)} instead