The
Getter Replacement
action will replace direct reading access to a field of a class with an appropriate getter method.