public Collection<EnumValue> getUniqueEnumValues(List<EnumValue> enumValues) {
        Map<String, EnumValue> filteredEnumValues = new TreeMap<>();
        // Iterate over the list of enum values and add only the first occurrence of each value to the map
        for (EnumValue enumValue : enumValues) {
            if (!filteredEnumValues.containsKey(enumValue.getValue())) {
                filteredEnumValues.put(enumValue.getValue(), enumValue);
            }
        }
        // Return the values of the map as a list
        return filteredEnumValues.values();
    }
Returns a list of unique {@link EnumValue}s from the given list.
<p>
This is used by the generated Python code to filter out duplicates in a list of {@link EnumValue}s.

@param enumValues the list of {@link EnumValue}s to filter.
@return a list of unique {@link EnumValue}s.
code-generation/language-python/src/main/java/org/apache/plc4x/language/python/PythonLanguageTemplateHelper.java