117In that regard, it should be recalled that the principle of proportionality, which is one of the general principles of EU law, requires that acts of the EU institutions be appropriate for attaining the legitimate objectives pursued by the legislation at issue and do not go beyond what is necessary in order to achieve those objectives; when there is a choice between several appropriate measures, recourse must be had to the least onerous, and the disadvantages caused must not be disproportionate to the aims pursued (see judgment of 16 February 2022, Hungary v Parliament and Council, C‑156/21, EU:C:2022:97, paragraph 340 and the case-law cited).