def METHOD_NAME(self, type_name: str) -> Optional[DataHandler]:
    from skytemple_files.common.types.file_types import FileType
    if hasattr(FileType, type_name):
        return getattr(FileType, type_name)
    return None