Ignore instance variables that have getter methods

When checking for unused instance variables no warnings should be added if
there's a corresponding getter method in the same scope.