docs: def get_overlaps(self) -> "IntervalList":
          """
          Returns an :class:`IntervalList` containing intervals representing
          periods of overlap between intervals in this one.
          """
          overlaps = IntervalList()
          for i in range(len(self.intervals)):
              for j in range(i + 1, len(self.intervals)):
                  first = self.intervals[i]
                  second = self.intervals[j]
                  ol = first.intersection(second)
                  if ol is not None:
                      overlaps.add(ol)
          return overlaps