Using AppiumFluentWait in java-client 8.x

Hi again,
as in my previous opened tickets, I’m trying to figure out how can I migrate from Appium java-client 7.x to 8.x.
In this one, I’m trying to figure out how can I implement wait. Before we used this:

final Wait wait = new AppiumFluentWait<>(el, Clock.system(ZoneId.systemDefault()), duration → {
Thread.sleep(duration.toMillis());
}).withPollingStrategy(AppiumFluentWait.IterationInfo::getInterval)
.withTimeout(ofSeconds(time))
.pollingEvery(ofMillis(500));

… but Wait is not available any more. And using AppiumFluentWait is not an option because I get a compile error:

Cannot access org.openqa.selenium.support.ui.FluentWait

Any help would be much appreciated!

Adding org.seleniumhq.selenium:selenium-support dependency is the solution.