fun applyAutocompleteResult(result: AutocompleteResult): Unit
Applies the provided result by updating the current autocomplete text and selection, if any.
result - the AutocompleteResult to apply
result