@staticmethod
def _compute_final_exit_code(*codes):
    """Returns the exit code with higher abs value in case of negative values."""
    max_code = None
    for code in codes:
        if max_code is None or abs(max_code) < abs(code):
            max_code = code
    return max_code
