public static function has($value)
    {
        if ($value instanceof static && get_class($value) === get_called_class()) {
            return true;
        }
        $class = get_called_class();
        $constants = static::detectConstants($class);
        return in_array($value, $constants, true);
    }