Update some editor methods to instead take immutable references (#23578)

Makes the signatures more informative and can be more convenient as
multiple immutable borrows are allowed.

Release Notes:

- N/A
52494f3fdfMichael Sloan committed on 1/23/2025, 9:52:10 PM· committed by GitHubparent9665336
3 files changedLine totals unavailable