void (IdeaLoggingEvent event) { if (myPendingAppendCounts.incrementAndGet() > MAX_ASYNC_LOGGING_EVENTS) { // stop adding requests to the queue, or we can get OOME on pending logging requests (IDEA-95327) myPendingAppendCounts.decrementAndGet(); // number of pending logging events should not increase } else if (DefaultIdeaErrorLogger.canHandle(event)) { myExecutor.execute(() -> DefaultIdeaErrorLogger.handle(event)); } }