It could be a choke used to filter noise on the wire bundle. They usually just snap together. Your dealer can replace it if it will not latch. You can wrap a tie wrap around it to hold it together until you get it in to dealership.
Already answered I know but further- "A ferrite bead – also called a ferrite block, ferrite core, ferrite ring, EMI filter, or ferrite choke – is a type of choke that suppresses high-frequency ...acts as a low pass filter"