Analogies with the law of international armed conflict