The war in Ukraine is far from over, but a consensus is forming in Chinese policy circles that one country stands to emerge victorious from the turmoil: China.

After a confused initial response to Russia’s invasion, China has laid the building blocks of a strategy to shield itself from the worst economic and diplomatic consequences it could face, and to benefit from geopolitical shifts once the smoke clears.

China’s leader, Xi Jinping, has avoided criticizing President Vladimir Putin of Russia, but he has also tried to distance China from the carnage. His government has denounced the international sanctions imposed on Russia but, so far at least, has hinted that Chinese companies may comply with them, to protect China’s economic interests in the West.