What is this Part?

I’ve never seen this what is this green part?

It looks like it attaches to your switches. Or maybe a recharge port?

Is it possible to get a picture without the wires in the way? My first thought, since it’s fairly common, is a charging circuit for the battery…