How to check for class members modifiers

Hello, i am trying to write a rule that will check if an Entity class is annotated with @ApiModel, i have done that now i want the same rule to check for the members of that class, If they are of type variable they must be annotated with @ApiModelProperty , I have accessed them using classTree.members() but i can’t access classTree.members().modifiers although the values that I need to check are there while debugging.


i would like to know how to access these values from classTree, thank you!