def METHOD_NAME(self, OnSwitchMapsetHandler):
    """Show info when last used mapset is locked"""
    last_used_mapset_path = gisenv()["LAST_MAPSET_PATH"]
    buttons = [(_("Switch to last used mapset"), OnSwitchMapsetHandler)]
    message = _(
        "Last used mapset in path '{mapsetpath}' is currently in use. "
        "GRASS GIS has started in a temporary Location. "
        "To continue, use Data Catalog below to switch to a different Location "
        "or remove lock file and switch to the last used mapset."
    ).format(mapsetpath=last_used_mapset_path)
    self.infoBar.ShowMessage(message, wx.ICON_INFORMATION, buttons)