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
It is Language-specific. You have to go to Syntax > Change a Language and modify the "Mark Ocurrency" color.
Know more: How to change the highlight variable color in NetBeans IDE ?