public function createTagPosition($category, $type, $lineno = -1, $name = null, $position = null)
    {
        $tag = $this->formatTagPosition($category, $type, $position);

        if (\in_array($tag, $this->tagPositions, true)) {
            throw new AlreadyExistTagPositionException($category, $type, $position, $lineno, $name);
        }

        $this->tagPositions[] = $tag;

        return $this->getTagPosition($tag, $category);
    }