def METHOD_NAME(self, visible):
    """
    Shows/Hides the panel.
    Automatically call PanelsManager.refresh_panels.
    :param visible: Visible state
    """
    logger.debug('%s visibility changed', self.name)
    super(Panel, self).METHOD_NAME(visible)
    if self.editor:
        self.editor.panels.refresh()