Hrm, that's true, but it does account for most of the use cases of an annotation. Your case of an annotation within a comment is actually part of a larger case of "is the given line within a comment block," and I don't think we can solve that with regexes. I will look into making a better IsComment function which takes into account the line's context.

From Wikipedia, I have the following examples of fairly complex annotations which would not get caught by the previous, stricter regex:

```java
@UnderConstruction(owner="Navin Gujarish")
```

and:

```java
@Target({ElementType.TYPE,ElementType.METHOD, ElementType.CONSTRUCTOR,ElementType.ANNOTATION_TYPE, ElementType.PACKAGE,ElementType.FIELD,ElementType.LOCAL_VARIABLE})
```