def METHOD_NAME(self):
    view = self.mainwindow().currentView()
    self.actionCollection.view_bookmark.setChecked(
        bookmarks.bookmarks(view.document()).hasMark(view.textCursor().blockNumber(), 'mark'))