Have a look at the thread Lucaz started on the Ducati Forum, particularly the picture in post #3.
https://www.ducatiforum.co.uk/thread...this-for.4933/
It's a diode to stop a voltage spike travelling back down the loom when the starter solenoid disengages. Does your bike have one in the same place? If not, I'm wondering if yours was moved, as some posts suggest Ducati relocated it further up the loom to protect it from damage.