No setItems method in ListSelect in vaadin 8?

Many documentations, such as the folowing,
https://vaadin.com/docs/-/part/framework/components/components-selection.html
says to use setItems method for adding items to ListSelect.
However, the vaadin 8.1.3 package and javadoc I just downloaded does seem to have this method.
What did I miss?
I tried to use ListSelect constructor with a HashSet of Strings, but the ListSelect showed up with nothing in it. Not obvious to me how to set captions for items in ListSelect in vaadin 8.

The setItems method is provided by HasItems and HasDataProvider interfaces. Some methods are implemented as default methods. ListSelect implements those interfaces.

Check these examples:

https://vaadin.com/docs/-/part/framework/components/components-listselect.html


https://demo.vaadin.com/sampler/#ui/data-input/multiple-value/list-select

jcfortier:
Based on your tip, my eclipse found the method after I imported vaadin.data package.
Thanks.

You’re welcomed