@Override
  protected void selectElement(Object element, String selectedText) {
    if (element != null) {
      //noinspection unchecked
      ScrollingUtil.selectItem(myComponent, (T)element);
    }
    else {
      myComponent.clearSelection();
    }
  }
@Override
  protected void selectElement(Object element, String selectedText)