void (boolean addAgain) { final List<LookupElement> items = getItems(); myPresentableArranger.prefixChanged(this); getListModel().performBatchUpdate(model -> { synchronized (myUiLock) { model.removeAll(); } }); if (addAgain) { for (final LookupElement item : items) { addItem(item, itemMatcher(item)); } } refreshUi(true, true); }