[Java] new equivalent of boolQuery.hasClauses() in ES 8 Java client?

Hello,

I'm looking for the new equivalent of the old BoolQueryBuilder.hasClauses() for Elasticsearch 8 Java client.

It seems to have completely dissapear ? Any workaround about ?