There's different ways to interpret laws for courts. One of them is called teleological interpretation where you follow the intent of the law. For this courts also look into the documentation the legislation provided when defining the law. This is usually not done by lower courts, but courts like the CJEU use those when the letter of the law is unclear to define this for the lower courts to follow.