public boolean requiresStartPos() {
        if (thisType instanceof ComplexTypeDefinition) {
            ComplexTypeDefinition complexTypeDefinition = (ComplexTypeDefinition) this.thisType;
            // Iterate over all fields of the complex type definition.
            for (Field curField : complexTypeDefinition.getFields()) {
                // If a field requires a "startPos" variable, return true.
                if (requiresVariable(curField, "startPos")) {
                    return true;
                }
            }
        }
        // If none of the fields require a "startPos" variable, return false.
        return false;
    }
Checks whether the complex type definition requires a "startPos" variable.

@return true if a "startPos" variable is required, false otherwise
code-generation/language-python/src/main/java/org/apache/plc4x/language/python/PythonLanguageTemplateHelper.java