public static void selectItem(@NotNull JList<?> list, int index) {
    LOG.assertTrue(index >= 0);
    LOG.assertTrue(index < list.getModel().getSize());
    ensureIndexIsVisible(list, index, 0);
    list.setSelectedIndex(index);
  }
public static void selectItem(@NotNull JList<?> list, int index)