void (@NotNull Supplier<String> messageSupplier) { final long nowMs = System.currentTimeMillis(); long lastLoggedAt = lastLoggedAtMsHolder.get(); if (lastLoggedAt + ignoreRepeatedMessagesInMs < nowMs) { logger.warn(messageSupplier.get()); forwardLastLogged(nowMs, lastLoggedAt); } }