actually, this is part of the PHPDocTypeGuesser class, @xabbuh