def __extract_desired_params(boolean_list: list, parameter_list: list):
    """
    Function which takes 2 lists, one with booleans and one with any other data types.
    Returns a list with all values of the parameter list which had the same indices as
    the True booleans in the boolean list
    :param boolean_list:    List of True or False
    :param parameter_list:  List of parameters
    :return: List of parameters that coincide with True items in boolean list
    """
    if len(boolean_list) != len(parameter_list):
        raise IndexError('Input sizes do not match')
    result = []
    for boolean, item in zip(boolean_list, parameter_list):
        if boolean is True:
            result.append(item)
    return result
