Same here:

    for (StaticScriptResource staticScriptResource : toAdd) {