Hi guys it is my addAll method and I think solving this way isn't optimize version, can you offer me a simpler version by the way. Any help into this would be appreciated!

```
@Override
public ApiResponse addAll(HttpHeaders headers, List<NewsDto> newsDtoList) {
    for (NewsDto newsDto : Objects.requireNonNull(newsDtoList)) {
        News news = new News();
        if (newsDto.getUserId() != null) news.setUserId(newsDto.getUserId());
        if (newsDto.getTitleRu() != null) news.setTitleRu(newsDto.getTitleRu());
        if (newsDto.getTextRu() != null) news.setTextRu(newsDto.getTextRu());
        if (newsDto.getTitleUz() != null) news.setTitleUz(newsDto.getTitleUz());
        if (newsDto.getTextUz() != null) news.setTextUz(newsDto.getTextUz());
        if (newsDto.getTitleEng() != null) news.setTitleEng(newsDto.getTitleEng());
        if (newsDto.getTextEng() != null) news.setTextEng(newsDto.getTextEng());
        newsRepo.save(news);
    }
    return new ApiResponse(true, "all list saved");
}

```

I try mapped with mapstruct but my entity class extend some fields at another class thats why mapstruct could't see any fields in class and I try solve this way.