void (@NotNull List<? extends PsiElement> data) { T[] array = (T[])data.toArray(NavigatablePsiElement.EMPTY_NAVIGATABLE_ELEMENT_ARRAY); updatedTargetsList.set(array); popupUpdater.replaceModel(Arrays.asList(array)); }