So in the wild, it’s all about dominance. There can be hundreds of wrasses of the same and similar species. It tends to be the most dominant one becomes male however, there isn’t just the ONE male in that group. You may hear the most dominant male being called a supermale.
What is a supermale? Well, Similarly to clownfish when a female changes sex to become a male it can no longer be able to revert back to being a female. So a super male means the wrasse has changed to a male and can longer turn back. It can also be a male wrasse who has reached the most amount of colour possible.
However, when we look back at this I said most dominant male is the one who is the supermale, but what if the rest weren’t just females? You will often find other, more like the subdominant males in the group, there aren’t as many of these males in the group as there are females though. If I can remember correctly when these males become “Supermale” if that dominant male is still alive then the second supermale gets kicked out. However when the supermale is dead, the others “line” up and I’m pretty sure fight it out, the most dominant becomes the supermale.
I asked a question similar to this and got the same answers of “Our tanks aren’t big enough” and similar.
Against in captivity, I think if you had a large tank with other fish/coral/inverts from the same part of the world you could mimic what these animals are used to, I have 2 lubbocks fairy wrasses and there is certainly the “super” male and the “subdominant” male. I can’t really help much on the captive side of these fish too much but hope the wild bit helps to start with an idea.
Here’s a photo of a wild group of P. filamentosus, you can see the males and females all in there.