boolean (@NotNull T element) { if (tryAppendUsage(element)) return true; if (myCanceled) return false; if (myPopup.isDisposed()) return false; synchronized (lock) { if (!myData.add(element)) return true; } myAlarm.addRequest(() -> { myAlarm.cancelAllRequests(); refreshModelImmediately(); }, 200, ModalityState.stateForComponent(myPopup.getContent())); return true; }