Refactoring for vectors

I wish to find a refactor tool that will change std::vector to at() with some control over which variables to change and which one not. With something that can change it say, just for a variable within struct A.var1 but not in struct B.var1, even if it is called the same thing “var1”.

e.g. Change

l[4] = -1;

to

l.at(4) = -1;

Are there any tools out there to do this job?