src/Blocks/Lists/BlockList.php
public function validateLineType($lineNumber)
    {
        $dataObject = $this->factory->getDataObject();
        $lineContent = $dataObject->getLine($lineNumber);
        $lineContent = trim($lineContent);

        return
            $this->isBlockOrderedListByContent($lineContent)
            || $this->isBlockUnorderedListByContent($lineContent)
        ;
    }
public function validateLineType($lineNumber)
    {
        $dataObject = $this->factory->getDataObject();
        $lineContent = $dataObject->getLine($lineNumber);
        $lineContent = trim($lineContent);

        return
            $this->isBlockOrderedListByContent($lineContent)
            || $this->isBlockUnorderedListByContent($lineContent)
        ;
    }
@param int $lineNumber

@return bool