EDIT: what I meant was NATO prob had a way to prevent the Ukraine war but chose not to: allow Russia to veto NATO membership as they demanded but at the same time impose the same drastic sanctions on Russia. this just avoids the war in Ukraine, leaving the rest the same. the sanctions would aim to push Russia to drop its veto and other demands.