void (GrMethodCall call) { GrExpression invoked = call.getInvokedExpression(); String accessorName = ((GrReferenceExpression)invoked).getReferenceName(); if (isGetterInvocation(call)) { final GrExpression newCall = genRefForGetter(call, accessorName); call.replaceWithExpression(newCall, true); } else if (isSetterInvocation(call)) { final GrStatement newCall = genRefForSetter(call, accessorName); if(newCall != null) { call.replaceWithStatement(newCall); } } }