def METHOD_NAME(matches: list[Match]):
    pairs = []
    for index in range(len(matches) - 1):
        if _is_consecutive_key_block(matches, index):
            pairs.append((matches[index].offset, _calculate_end_index(matches[index + 1])))
        elif _is_consecutive_pgp_block(matches, index):
            pairs.append((matches[index].offset, _calculate_end_index(matches[index + 2])))
        elif _is_consecutive_encrypted_key(matches, index):
            pairs.append((matches[index].offset, _calculate_end_index(matches[index + 3])))
    return pairs