ValueProvider and Setter in generic class

Hello there.

I am working on a Vaadin23 / Spring Projekt and I want to extend a generic class so that I have ValueProvider and Setter as fields whose values I can set with a builder pattern. the reason for this is that I have HasValue components that I want to bind dynamically. For this I need the possibility to specify ValueProvider and Setter user-defined, in case I need a nested binding. Unfortunately, I have so far failed due to typing and casting problems. Does anyone have any ideas on how to solve this properly?

Many thanks in advance.

Not sure if that is easily doable, but maybe you have a code sample that could help illustrate the problem better?