Fly perched on Cow Parsley

Fly perched on Cow Parsley

Observation - Fly perched on Cow Parsley - UK and Ireland. Description: I hadn’t realized there were two (hinged) parts to the snout and am wondering what function that serves.

I hadn’t realized there were two (hinged) parts to the snout and am wondering what function that serves.