docs: private static Date getExpireAt(final Ticket ticket) {
          val expirationPolicy = ticket.getExpirationPolicy();
          val ttl = ticket instanceof TicketState
              ? expirationPolicy.getTimeToLive((TicketState) ticket)
              : expirationPolicy.getTimeToLive();
  
          if (ttl < 1) {
              return null;
          }
  
          return new Date(System.currentTimeMillis() + TimeUnit.SECONDS.toMillis(ttl));
      }