Unfold parent fold trigger if the block is collapsed.

        :param block: Block to unfold.

def unfold_if_colapsed(self, block):
        """Unfold parent fold trigger if the block is collapsed.

        :param block: Block to unfold.
        """
        try:
            folding_panel = self._editor.panels.get('FoldingPanel')
        except KeyError:
            pass
        else:
            from spyder.plugins.editor.utils.folding import FoldScope
            if not block.isVisible():
                block = FoldScope.find_parent_scope(block)
                if TextBlockHelper.is_collapsed(block):
                    folding_panel.toggle_fold_trigger(block)