Use Collections#addAll instead of adding elements by hand. Part of patch (part 2) from Graham Russell. Bugzilla Id: 57981