def METHOD_NAME(self):
    doc = self._doc()
    if doc:
        import engrave
        engraver = engrave.Engraver.instance(self.mainwindow())
        if doc is engraver.stickyDocument():
            engraver.setStickyDocument(None)
        else:
            engraver.setStickyDocument(doc)