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
Preferences --> Java --> Editor --> Mark Occurrences