void (List<? extends RepoPackage> filtered, @Nullable final RepoPackage toSelect) { myView.clear(); myPackages.clearSelection(); myView.addAll(filtered); if (toSelect != null) myPackages.setSelectedValue(toSelect, true); Collections.sort(myView); fireContentsChanged(this, 0, myView.size()); }