static void replaceTokens(L tok, int i, int j, S s) { clearAllTokens(subList(tok, i, j)); tok.set(i, s); }