public synchronized boolean checkEmptyBlockExpired(
      final Supplier<Long> headerTimestamp, final long currentTimeInMillis) {
    final long emptyBlockPeriodExpiryTime =
        (headerTimestamp.get() + emptyBlockPeriodSeconds) * 1000;

    if (currentTimeInMillis > emptyBlockPeriodExpiryTime) {
      LOG.debug("Empty Block expired");
      return true;
    }
    LOG.debug("Empty Block NOT expired");
    return false;
  }
Checks if the empty block timer is expired

@param headerTimestamp Function to get the chain head timestamp
@param currentTimeInMillis The current time
@return a boolean value
consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/BlockTimer.java