private void updateListHeight(ListModel<LookupElement> model) {
    list.setFixedCellHeight(
      cellRenderer.getListCellRendererComponent(list, model.getElementAt(0), 0, false, false).getPreferredSize().height);
    list.setVisibleRowCount(Math.min(model.getSize(), myPresentation.getMaxVisibleItemsCount()));
  }
private void updateListHeight(ListModel<LookupElement> model)