result.add(0, tokens.get(pos - i).token);
added++;
}
}
}
<BUG>result.add(newToken);
for (int i = 1, added = 0; added < toRight; i++) {</BUG>
if (pos+i >= tokens.size()) {
result.add(".");
added++;

result.add(0, tokens.get(pos - i).token);
added++;
}
}
}
for (GoogleToken googleToken : newTokens) {
result.add(googleToken.token);
}
for (int i = 1, added = 0; added < toRight; i++) {
if (pos+i >= tokens.size()) {
result.add(".");
added++;
