@Nonnull
    public static <T> T checkNonNullAndSerializable(@Nonnull T object, @Nonnull String objectName) {
        //noinspection ConstantConditions
        if (object == null) {
            throw new IllegalArgumentException('"' + objectName + "\" must not be null");
        }
        checkSerializable(object, objectName);
        return object;
    }
@Test
    public void whenNullToCheckNonNullAndSerializable_thenThrowException() {
        assertThatThrownBy(() -> Util.checkNonNullAndSerializable(null, "object"))
                .isInstanceOf(IllegalArgumentException.class)
                .hasMessage("\"object\" must not be null");
    }