def findParam(params, targetValue):
    """Returns a param entry (cvParam or userParam) in a list of params if its
    'accession' (cvParam) or 'name' (userParam) matches the targetValue.
    return: cvParam, userParam or None if no matching param was found

    :param params: #TODO: docstring
    :param targetValue: #TODO: docstring

    :returns: #TODO: docstring
    """
    for param in params:
        if param[0] == targetValue:
            return param
    return None
