There is an annotation @MarkerAnnotation. It can be added directly to method. or to any other annotation, like
@MarkerAnnotation
@Interface CustomAnnotation {...}
and this @CustomAnnotation can also be added directly to methods. That's the standard way many frameworks let users add their own annotation (e.g. spring).
Now, given a class, I want to find all methods marked directly or indirectly with @MarkerAnnotation. For every method I also want to find the associated @MarkerAnnotation and/or @CustomAnnotation. Is there any tool that I can use or I have to do it manually?