I tried using the Toggle mark occurrences (Alt + Shift + O) button and also in Preferences -> General -> Editors -> Text Editor -> Annotations
Toggle mark occurrences (Alt + Shift + O)
Preferences -> General -> Editors -> Text Editor -> Annotations
Check out options that are checked in Preferences -> Java -> Editor -> Mark occurrences. Then restart Eclipse.