docs: public synchronized V removeItem(int index) {
          V existing = items.remove(index);
          if(index < selectedIndex) {
              selectedIndex--;
          }
          while(selectedIndex >= items.size()) {
              selectedIndex--;
          }
          invalidate();
          return existing;
      }