def METHOD_NAME(self, file_, changed_name, global_factory):
    finder = occurrences.create_finder(
        self.project, self.old_name, self.old_pyname, only_calls=True
    )
    return rename.rename_in_module(
        finder, changed_name, resource=file_, replace_primary=global_factory
    )