The Spring Data team works on introducing a type-safe way to reference properties in Spring Data:
https://spring.io/blog/2026/02/27/moving-beyond-strings-in-spring-data
We should add refactoring support for this, so that the user can automatically refactor code that uses string-based property references to code that uses the new type-safe property references.