def METHOD_NAME(self, item=None):
    if item is not None:
        ## Select next exportable parent of the item originally clicked on
        while not isinstance(item, ViewBox) and not isinstance(item, PlotItem) and item is not None:
            item = item.parentItem()
        ## if this is a ViewBox inside a PlotItem, select the parent instead.
        if isinstance(item, ViewBox) and isinstance(item.parentItem(), PlotItem):
            item = item.parentItem()
        self.updateItemList(select=item)
    self.setVisible(True)
    self.activateWindow()
    self.raise_()
    self.selectBox.setVisible(True)
    if not self.shown:
        self.shown = True
        vcenter = self.scene.getViewWidget().geometry().center()
        x = max(0, int(vcenter.x() - self.width() / 2))
        y = max(0, int(vcenter.y() - self.height() / 2))
        self.move(x, y)