def METHOD_NAME(self, oViolation):
    lTokens = oViolation.get_tokens()
    dAction = oViolation.get_action()
    if dAction['action'] == 'Insert':
        rules_utils.insert_carriage_return(lTokens, dAction['index'])
        rules_utils.insert_blank_line(lTokens, dAction['index'])
        oViolation.set_tokens(lTokens)
    elif dAction['action'] == 'Remove':
        iStart = dAction['start']
        iEnd = dAction['end']
        lNewTokens = lTokens[:iStart]
        lNewTokens.extend(lTokens[iEnd:])
        oViolation.set_tokens(lNewTokens)