Bug 94062 [1.5][search][annot] search for annotation elements incorrect match range
When searching for references for the following annotation: public @interface Expected { Class value(); } The match range for a use of this annotation is as follows: @Test <|>@Expected(Error.class) public void expectedException() { This is confusing since when the editor doesn't have focus the caret isn't shown and therefore the match isn't visible.
org.eclipse.jdt.ui.tests.refactoring/resources/RenameMethodInInterface/testAnnotation4/out/A.java
package p;
class A<E> {
    @I(12)
    @interface I {
        @I(num=13)
        int num();
    }
    
    /**
     * @see I#num()
     */
    class Ref {
        int getIofI() {
            I i= I.class.getAnnotation(I.class);
            return i.num();
        }
    }
}