def METHOD_NAME(self, prefs):
    """Restores any saved user preference information associated with the
    editor.
    """
    shell = self._shell
    try:
        history = prefs.get("history", [])
        history_index = prefs.get("history_index", -1)
        shell.set_history(history, history_index)
    except:
        pass