void (@NotNull JBList<RecentLocationItem> list, @NotNull RecentLocationsDataModel data, boolean changed) { NameFilteringListModel<RecentLocationItem> model = (NameFilteringListModel<RecentLocationItem>)list.getModel(); DefaultListModel<RecentLocationItem> originalModel = (DefaultListModel<RecentLocationItem>)model.getOriginalModel(); originalModel.removeAllElements(); originalModel.addAll(data.getPlaces(changed)); if (list.getModel().getSize() > 0) list.setSelectedIndex(0); SpeedSearchSupply speedSearch = SpeedSearchSupply.getSupply(list); if (speedSearch instanceof SpeedSearch) ((SpeedSearch)speedSearch).reset(); }