Indeed, all of that is part of the formula of which you speak. It is, in my mind, all the more reason to take with distrust anything any nation state says about its needs, goals, and “self defense.”
Palestine, for instance, is an invaded nation. If one can claim Ukraine deserves to defend itself, one has to also claim Palestine has the same rights.
But… marketing and prop/agitprop makes one believe otherwise.