73As is clear from the case-law, the question whether there is an infringement of the right to be heard must be examined in relation, inter alia, to the legal rules governing the matter concerned (judgment of 9 February 2017, M, C‑560/14, EU:C:2017:101, paragraph 33).