def METHOD_NAME(self, **kwargs: Any) -> FileImport:
    file_import = FileImport()
    if not (
        self.code_model.options["version_tolerant"]
        and self.element_type.is_xml
        and not self.code_model.options["models_mode"]
    ):
        file_import.add_submodule_import(
            "typing", "List", ImportType.STDLIB, TypingSection.CONDITIONAL
        )
    file_import.merge(self.element_type.METHOD_NAME(**kwargs))
    return file_import