void (@NotNull Collection<?> result, @NotNull SelectionPolicy toSelect) { myCalcElementsThread = null; setElementsToList(toSelect, result); myList.repaint(); chosenElementMightChange(); if (result.isEmpty()) { myTextFieldPanel.hideHint(); } }