in src/main/kotlin/org/jetbrains/plugins/template/weatherApp/ui/WeatherAppViewModel.kt [161:165]
fun withItemAtIndexSelected(newIndex: Int): LocationsUIState {
if (newIndex == selectedIndex) return this
return LocationsUIState(locations = locations, selectedIndex = newIndex)
}