Only consider annotations that have a specific target.

The following targets are ignored:

* ClassName
* ClassName<extended>
* ClassName::<public>
* ClassName::<protected>
* ClassName::<private>
* ClassName::<!public>
* ClassName::<!protected>
* ClassName::<!private>
* ::functionName

It would probably be better to change the regular expression to only match ClassName::methodName.