bundled up PatternList::addRootPattern and PatternList::addSubpattern