Update to Kotlin 1.9.0 and migrate to newer language idioms. - Remove unnecessary @OptIn for features migrated to mainstream - Use `data object` where appropriate - Use new enum `entries` property
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>