This avoids the need to get `Option.get` and makes it clearer that the Replica and Partition associated.
### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) [ Full content available at: https://github.com/apache/kafka/pull/5598 ] This message was relayed via gitbox.apache.org for [email protected]
