JBList<T> () { final JBList<T> list = new JBList<>(myListModel); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); list.setEmptyText(getListEmptyText()); list.setCellRenderer(createListCellRenderer()); if (hasFixedSizeListElements()) { list.setFixedCellHeight(JBUIScale.scale(UIUtil.LIST_FIXED_CELL_HEIGHT)); list.setFixedCellWidth(list.getWidth()); } installListActions(list); list.addListSelectionListener(new ListSelectionListener() { @Override public void valueChanged(ListSelectionEvent event) { if (event.getValueIsAdjusting()) return; if (isMergeListItemsRunning()) return; if (myUpdateSelectedPathModeActive.get()) return; updateRightComponent(true); } }); ScrollingUtil.installActions(list); // installSpeedSearch(list); // TODO installEditOnDoubleClick(list); return list; }