replace localVar or field access by localVar or field access