public static List<MusicProtocol.MusicArtist> convertMusicGroupsToMusicArtists(Collection<MusicGroup> musicGroups) {

        if (musicGroups == null || musicGroups.isEmpty()) {
            return Collections.emptyList();
        }

        List<MusicProtocol.MusicArtist> musicArtists = new ArrayList<>();
        for (MusicGroup musicGroup : musicGroups) {
            if (!StringUtils.isBlank(musicGroup.getName())) {
                MusicProtocol.MusicArtist artist = MusicProtocol.MusicArtist.newBuilder()
                        .setName(musicGroup.getName())
                        .build();
                musicArtists.add(artist);
            }
        }
        return musicArtists;
    }
Helper class for converting incoming DTP format playlists and playlist-tracks to Apple Music format for transport to
Apple Music Data Transfer services.
extensions/data-transfer/portability-data-transfer-apple/src/main/java/org/datatransferproject/datatransfer/apple/music/data/converters/AppleMusicPlaylistConverter.java