void () { ListIterator<SearchEverywhereFoundElementInfo> iterator = listElements.listIterator(); while (iterator.hasNext()) { int index = iterator.nextIndex(); if (iterator.next().getElement() == MORE_ELEMENT) { iterator.remove(); fireContentsChanged(this, index, index); } } }