'Take in a tool parameter element.'

@staticmethod
def from_parameter(param, collection_type_descriptions):

    collection_types = param.collection_types
    if collection_types:
        collection_type_descriptions = [collection_type_descriptions.for_collection_type(t) for t in collection_types]
        collection_type_descriptions = sorted(collection_type_descriptions, (lambda t: t.dimension), reverse=True)
    else:
        collection_type_descriptions = None
    kwargs = dict(collection_type_descriptions=collection_type_descriptions)
    return HistoryQuery(**kwargs)
