@classmethod
def _interval_overlap(cls, interval1, interval2):
    """Return true if the two intervals overlap."""
    start1, end1 = interval1
    start2, end2 = interval2
    return start1 < end2 and end1 > start2
