Replace existing `Collections.sort(...)` calls with `.sort(...)` directly on the collection instance. See gh-9781