Is there a way to create rules in workflow analyzer with annotations?

I saw in the documentation for building rules in the workflow analyzer, the example of variables, but can you make rules regarding other aspects of a project? for example, arguments, annotations and more? thanks.