public static function createByActiveElements(
        string $name,
        int $n,
        array $activeElements
    ): ? self {
        $values = Metadata::fromMetadata($name);

        if (is_null($values)) {
            return null;
        }

        return new self(
            $values,
            in_array($values['id'], $activeElements),
            $n
        );
    }