but obviously if you made something that looks like a stormtrooper they would drop the hammer so fast
You mean something like this?
But yeah, as much as I'd consider that design obviously inspired by SW, I suppose the little differences might suffice to prevent a lawsuit, especially as they've existed for almost 40 years by now. Same for
Judge Dredd
the Adeptus Arbites etc.