When I move over a class name all the other places that that class name shows up are highlighted. When I hover over a variable it does the same thing with different places that
My answer is too late but it might be useful for someone else ,,
In Neatbeans Tools >> Options >> Fonts & Colors >> Language (Java) >> Mark occurrences .