Consider the following:
class Foo {
def getBar() {} // rename to "readBar"
void setBar(value) {} // rename to "writeBar"
}
new Foo().with {
def x = bar // "bar" should be replaced by "readBar()"
bar = x // "bar = x" should be replaced by "writeBar(x)"
}
If "getBar" is renamed to a non-accessor style name line "readBar" the property access is not properly refactored to "readBar()".