'Go to previous code analysis warning message
and return new cursor position'

def go_to_previous_warning(self):

    block = self.textCursor().block()
    while True:
        if (block.blockNumber() > 0):
            block = block.previous()
        else:
            block = self.document().lastBlock()
        data = block.userData()
        if (data and data.code_analysis):
            break
    line_number = (block.blockNumber() + 1)
    self.go_to_line(line_number)
    self.__show_code_analysis_results(line_number, data.code_analysis)
    return self.get_position('cursor')
