def could_overlap(xy_i, swarm, d):
    """Return a list of all swarm points that could overlap with one point."""
    _, y_i = xy_i
    neighbors = []
    for xy_j in swarm:
        _, y_j = xy_j
        if (y_i - y_j) < d:
            neighbors.append(xy_j)
    return neighbors