JComponent () { myListWithFilter = (ListWithFilter<T>)ListWithFilter.wrap(myList, new MyListWrapper(myList), myBuilder.getItemsNamer(), false, myBuilder.isFilterAlwaysVisible(), true); myListWithFilter.setAutoPackHeight(myBuilder.isAutoPackHeightOnFiltering()); return myListWithFilter; }