Code review comment: ```suggestion         Objects.requireNonNull(rawId, "'RawID' of the CommunicationIdentifierModel cannot be null."); ```

Code under review:
public static CommunicationIdentifier convert(CommunicationIdentifierModel identifier) {
        if (identifier == null) {
            return null;
        }

        assertSingleType(identifier);
        String rawId = identifier.getRawId();
        CommunicationIdentifierModelKind kind = (identifier.getKind() != null) ? identifier.getKind() : extractKind(identifier);

        if (kind == CommunicationIdentifierModelKind.COMMUNICATION_USER
            && identifier.getCommunicationUser() != null) {
            Objects.requireNonNull(identifier.getCommunicationUser().getId(),
                "'ID' of the CommunicationUserIdentifierModel cannot be null.");
            return new CommunicationUserIdentifier(identifier.getCommunicationUser().getId());
        }

        if (kind == CommunicationIdentifierModelKind.PHONE_NUMBER
            && identifier.getPhoneNumber() != null) {
            String phoneNumber = identifier.getPhoneNumber().getValue();
            Objects.requireNonNull(phoneNumber, "'PhoneNumber' of the CommunicationUserIdentifierModel cannot be null.");
            Objects.requireNonNull(rawId, "'RawID' of the CommunicationUserIdentifierModel cannot be null.");
            return new PhoneNumberIdentifier(phoneNumber).setRawId(rawId);
        }

        if (kind == CommunicationIdentifierModelKind.MICROSOFT_TEAMS_USER
            && identifier.getMicrosoftTeamsUser() != null) {
            MicrosoftTeamsUserIdentifierModel teamsUserIdentifierModel = identifier.getMicrosoftTeamsUser();
            Objects.requireNonNull(teamsUserIdentifierModel.getUserId(), "'UserID' of the CommunicationUserIdentifierModel cannot be null.");
            Objects.requireNonNull(teamsUserIdentifierModel.getCloud(), "'Cloud' of the CommunicationUserIdentifierModel cannot be null.");
            Objects.requireNonNull(rawId, "'RawID' of the CommunicationUserIdentifierModel cannot be null.");
            return new MicrosoftTeamsUserIdentifier(teamsUserIdentifierModel.getUserId(),
                teamsUserIdentifierModel.isAnonymous())
                .setRawId(rawId)
                .setCloudEnvironment(CommunicationCloudEnvironment
                    .fromString(teamsUserIdentifierModel.getCloud().toString()));
        }

        Objects.requireNonNull(rawId, "'RawID' of the CommunicationUserIdentifierModel cannot be null.");
        return new UnknownIdentifier(rawId);
    }

Line commented on: Objects.requireNonNull(rawId, "'RawID' of the CommunicationUserIdentifierModel cannot be null.");

Revised code:
public static CommunicationIdentifier convert(CommunicationIdentifierModel identifier) {
        if (identifier == null) {
            return null;
        }

        assertSingleType(identifier);
        String rawId = identifier.getRawId();
        CommunicationIdentifierModelKind kind = (identifier.getKind() != null) ? identifier.getKind() : extractKind(identifier);

        if (kind == CommunicationIdentifierModelKind.COMMUNICATION_USER
            && identifier.getCommunicationUser() != null) {
            Objects.requireNonNull(identifier.getCommunicationUser().getId(),
                "'ID' of the CommunicationIdentifierModel cannot be null.");
            return new CommunicationUserIdentifier(identifier.getCommunicationUser().getId());
        }

        if (kind == CommunicationIdentifierModelKind.PHONE_NUMBER
            && identifier.getPhoneNumber() != null) {
            String phoneNumber = identifier.getPhoneNumber().getValue();
            Objects.requireNonNull(phoneNumber, "'PhoneNumber' of the CommunicationIdentifierModel cannot be null.");
            Objects.requireNonNull(rawId, "'RawID' of the CommunicationIdentifierModel cannot be null.");
            return new PhoneNumberIdentifier(phoneNumber).setRawId(rawId);
        }

        if (kind == CommunicationIdentifierModelKind.MICROSOFT_TEAMS_USER
            && identifier.getMicrosoftTeamsUser() != null) {
            MicrosoftTeamsUserIdentifierModel teamsUserIdentifierModel = identifier.getMicrosoftTeamsUser();
            Objects.requireNonNull(teamsUserIdentifierModel.getUserId(), "'UserID' of the CommunicationIdentifierModel cannot be null.");
            Objects.requireNonNull(teamsUserIdentifierModel.getCloud(), "'Cloud' of the CommunicationIdentifierModel cannot be null.");
            Objects.requireNonNull(rawId, "'RawID' of the CommunicationIdentifierModel cannot be null.");
            return new MicrosoftTeamsUserIdentifier(teamsUserIdentifierModel.getUserId(),
                teamsUserIdentifierModel.isAnonymous())
                .setRawId(rawId)
                .setCloudEnvironment(CommunicationCloudEnvironment
                    .fromString(teamsUserIdentifierModel.getCloud().toString()));
        }

        Objects.requireNonNull(rawId, "'RawID' of the CommunicationIdentifierModel cannot be null.");
        return new UnknownIdentifier(rawId);
    }