def METHOD_NAME(self, source, model):
    if self.config.overwrite:
        output = self.config.output or source
        utils.ModelWriter(output=output, newline=self.get_line_ending(source)).write(model)