Alternative for Java highlightBuilder.maxAnalyzedOffset

We recently moved from using
elasticsearch-rest-high-level-client to opensearch-rest-high-level-client

We now have a comiplation error on the following:
highlightBuilder.maxAnalyzedOffset

Is there an alternative for this method, in opensearch Java client ?

Thank you!