def METHOD_NAME(self):
    if not self._needs_saving:
        return
    config_dir = op.dirname(self.FILEPATH)
    os.makedirs(config_dir, exist_ok=True)
    config_file = open(self.FILEPATH, "w")
    json.dump(self._cfg, config_file, indent=4)
    config_file.close()
    self._needs_saving = False