      - returns A `MeasureRepeat` that contains the measure(s) that are repeated as well as the repeat count. Returns nil
      if the measure at the specified index is not part of repeat.
      - throws:
-     - `StaffError.measureIndexOutOfRange`
-     - `StaffError.internalError` if the function has an internal implementation error.
+         - `StaffError.measureIndexOutOfRange`
+         - `StaffError.internalError` if the function has an internal implementation error.
      */
     public func measureRepeat(at measureIndex: Int) throws -> MeasureRepeat? {
         let (notesHolderIndex, _) = try notesHolderIndexFromMeasureIndex(measureIndex)

     - parameter measureIndex: The index of the measure to return.
     - returns An `ImmutableMeasure` at the given index within the staff.
     - throws:
     - `StaffError.measureIndexOutOfRange`
     - `StaffError.internalError` if the function has an internal implementation error.
     */
    public func measure(at measureIndex: Int) throws -> ImmutableMeasure {
        let (notesHolderIndex, repeatMeasureIndex) = try notesHolderIndexFromMeasureIndex(measureIndex)

     - parameter measureIndex: The index of the measure to replace.
     - parameter newMeasure: The new measure to replace the old one.
     - throws:
         - `StaffError.repeatedMeasureCannotBeModified` if the measure is a repeated measure.
         - `StaffError.internalError` if index translation doesn't work properly.
     */
    public mutating func replaceMeasure(at measureIndex: Int, with newMeasure: Measure) throws {
        let (notesHolderIndex, repeatMeasureIndex) = try notesHolderIndexFromMeasureIndex(measureIndex)
