Interesting, I tried reflection before and it didn’t work. That’s why I wrote here.
Now it’s clear.
Thanks 👍.
But it’s interesting that I cannot get the class from the annotation, but I can get the type if I pass it as argument into a function.
That works for me.
But I’ve another question, UserPreferences has a Builder, I can get the Builder and UserPreferences file which is the same.
Is there a way to figure out that the Biuilder is declared on UserPreferences or get the type UserPreferences.Builder which is the original type?