def METHOD_NAME(self):
    changed_files = 0
    for source, config in self.main_config.get_sources_with_configs():
        self.config = config
        disabler_finder = RegisterDisablers(self.config.formatting.start_line, self.config.formatting.end_line)
        try:
            stdin = False
            if str(source) == "-":
                stdin = True
                if self.config.verbose:
                    click.echo("Loading file from stdin")
                source = self.load_from_stdin()
            elif self.config.verbose:
                click.echo(f"Transforming {source} file")
            model = self.get_model(source)
            model_path = model.source
            disabler_finder.visit(model)
            if disabler_finder.file_disabled:
                continue
            diff, old_model, new_model, model = self.transform_until_stable(model, disabler_finder)
            if diff:
                changed_files += 1
            self.output_diff(model_path, old_model, new_model)
            if stdin:
                self.print_to_stdout(new_model)
            elif diff:
                self.save_model(model_path, model)
        except DataError:
            click.echo(
                f"Failed to decode {source}. Default supported encoding by Robot Framework is UTF-8. Skipping file"
            )
            pass
    if not self.config.check or not changed_files:
        return 0
    return 1