@Deprecated
    public static void validateIds(List<? extends UUIDBased> ids, String errorMessage) {
        if (ids == null || ids.isEmpty()) {
            throw new IncorrectParameterException(errorMessage);
        } else {
            for (UUIDBased id : ids) {
                validateId(id, errorMessage);
            }
        }
    }
@Test
    void validateIdsTest() {
        List<? extends UUIDBased> list = List.of(goodDeviceId);
        Validator.validateIds(list, ids -> "Incorrect Id " + ids);

        assertThatThrownBy(() -> Validator.validateIds(null, id -> "Incorrect Ids " + id))
                .as("Ids are null")
                .isInstanceOf(IncorrectParameterException.class)
                .hasMessageContaining("Incorrect Ids null");

        assertThatThrownBy(() -> Validator.validateIds(Collections.emptyList(), ids -> "Incorrect Ids " + ids))
                .as("List is empty")
                .isInstanceOf(IncorrectParameterException.class)
                .hasMessageContaining("Incorrect Ids []");

        List<UUIDBased> badList = new ArrayList<>(2);
        badList.add(goodDeviceId);
        badList.add(null);

        // Incorrect Ids [18594c15-9f05-4cda-b58e-70172467c3e5, null]
        assertThatThrownBy(() -> Validator.validateIds(badList, ids -> "Incorrect Ids " + ids))
                .as("List contains null")
                .isInstanceOf(IncorrectParameterException.class)
                .hasMessageContaining("Incorrect Ids ")
                .hasMessageContaining(goodDeviceId.getId().toString())
                .hasMessageContaining("null");

    }