I'm working on an Action whose end goal is to add the "final" modfiier to all class fields which are private and unmodified.
My initial idea was to grab all of the "private" fields from the class, look up references for those fields, check to see if any are modifications, and mark the field as "final" if not.
This is what I have so far: https://github.com/champgm/IntelliJCodeGenerationPlugin/blob/10-Final-Fields/src/com/champgm/intellij/plugin/fields/MakeFieldsFinal.java#L27
But there are no references contained in these fields. Did I misinterpret what references are? Am I going about this the right way, or are there some util classes that will make this much easier?