def METHOD_NAME(self, query, match, all_particles, **kwargs):
    """Find particle with the same index as match in a neighboring tile."""
    k = kwargs.get("k", 10)
    _, idxs = self.particle_kdtree.query(query.pos, k=k)
    neighbors = all_particles[idxs]
    for particle in neighbors:
        if particle.index == match.index:
            return particle
    raise MBuildError(
        "Unable to find matching particle image while stitching bonds."
    )