            break

    process_line = in_line.replace(' ', '')
    if '<<' in process_line:
        process_line = process_line.split('<<')[0]
    process_line = process_line.replace(process_type, '')
    found_name = process_line.split('{')[0]
    return found_name


def find_plant_structure(plant_structures: list[PlantContent], in_package: str, in_name: str) -> PlantContent:
    """
    Finds the structure in the structure list, if there is no match for the name of the structure
    then a new structure is created and added to the list. Both the name and the package are used
    to identify the structure, this alows for a class with the same name to exist in differnt packages