public static function notNull($value, $message = null, $propertyPath = null)
{
if ($value === null) {
$message = sprintf($message ?: 'Value "%s" is null, but non null value was expected.', static::stringify($value));
throw static::createException($value, $message, static::VALUE_NULL, $propertyPath);
}
return true;
}