An aside about "Just War Theory" (JWT). I took a semester course in philosophy with Jeff McMahan (who has been working in this area for a long time). Having a theory (and a thus set of rules most countries try to follow) is better than nothing, but the current theory seems absurd. It exculpates soldiers from participating in war - it claims they are not doing anything wrong when they follow orders to kill other combatants.
The simplest example of a justified war is one of defense (like what Ukraine is engaging in). But under JWT, even though Russia is not justified in its actions, the individual soldiers are morally permitted to follow orders to kill combatants. Thankfully, at least, under JWT soldiers are not justified in following orders to kill noncombatants.