pub(crate) fn output_checkstyle_file<T>(
    writer: T,
    filename: &FileName,
    diff: Vec<Mismatch>
) -> Result<(), Error>where
    T: Write,