public static void ensureIndexIsVisible(@NotNull JList<?> list, int index, int moveDirection) {
    _ensureIndexIsVisible(list, index, moveDirection, list.getModel().getSize());
  }
public static void ensureIndexIsVisible(@NotNull JList<?> list, int index, int moveDirection)