https://github.com/melange-re/melange-compiler-libs/blob/eb8207c1b6744180095184194dfd843e06f9fad1/utils/warnings.ml#L566-L593