in src/main/kotlin/org/jetbrains/plugins/template/weatherApp/ui/WeatherAppViewModel.kt [113:117]
fun toSelectableLocations(): List<SelectableLocation> {
return locations.mapIndexed { index, location ->
SelectableLocation(location, index == selectedIndex)
}
}