docs: public synchronized T setSelectedIndex(int index) {
          selectedIndex = index;
          if(selectedIndex < 0) {
              selectedIndex = 0;
          }
          if(selectedIndex > items.size() - 1) {
              selectedIndex = items.size() - 1;
          }
          invalidate();
          return self();
      }