As Mamai's story indicates, he is connected with the Cossack Mamay, a Ukrainian hero of popular folklore and legend. The Cossack Mamay is often depicted carrying a stringed instrument called a kobza. Paintings of Mamay often feature violent incidents involving Poles or Jews.
Wikipedia has an article on this subject at: Cossack Mamay