Vaadin 8 and 10 are not compatible by default, so a com.vaadin.ui package is always a sign of Vaadin 8 (or earlier), while Vaadin 10+ components are located inside of com.vaadin.flow.
This means a Vaadin 8 addon cannot be used in Vaadin 10 (except inside of MPR).