Star Wars (1977) was Lucas' nostalgic love letter to the films and serials he watched as a child, an homage to various genres including cliffhangers and westerns. Han Solo was a vest wearing western movie gunslinger, with his low slung, tied down holster.
The early Brian Daley Han Solo trilogy even had Han going up against the notorious gunslinger, Gallandro.
Raylan Givens in Justified was mimicry of the western movie genre transplanted to the contemporary period. I thought making Vanth into Space Givens was both apt and a neat cross reference.
Cad Bane was mimicry of Lee Can Cleef's spaghetti western appearances, just as Lucas and Jeremy Bulloch built Boba Fett around Clint Eastwood's similar appearances.