Add a new method that adds the AttributeSet at the given index. No functional change.