I know nobody wants to hear this, but developers in the U.S. are overpaid compared to their peers in the rest of the world. We should count our blessings.
In UK best developers work as contractors and make on par with US peers. This is not accounted for in most data as they look at permanent job salaries in UK which are very low.