private void addConflictedDeviceTypes(
            Map<DeviceType, Set<DeviceType>> deviceTypeToExclusiveDeviceTypes,
            @NotNull @ValidDeviceType DeviceType deviceTypeOne,
            @NotNull @ValidDeviceType DeviceType deviceTypeTwo) {
        deviceTypeToExclusiveDeviceTypes
                .computeIfAbsent(deviceTypeOne,
                        key -> CollectionUtil.newSetWithExpectedSize(
                                DeviceTypeUtil.ALL_AVAILABLE_DEVICE_TYPES.length))
                .add(deviceTypeTwo);
        deviceTypeToExclusiveDeviceTypes
                .computeIfAbsent(deviceTypeTwo,
                        key -> CollectionUtil.newSetWithExpectedSize(
                                DeviceTypeUtil.ALL_AVAILABLE_DEVICE_TYPES.length))
                .add(deviceTypeOne);
    }
Forbidden device types can never connect to turms servers
turms-gateway/src/main/java/im/turms/gateway/domain/session/service/UserSimultaneousLoginService.java