public boolean isLeafCell(KLabel klabel) { return cfg.isLeafCell(labels.getCodomain(klabel)); } public boolean isParentCell(KLabel klabel) {
assert p.items().last() instanceof Terminal || p.items().last() instanceof RegexTerminal; final ProductionItem body; if (cfgInfo.isLeafCell(p.sort())) { body = p.items().tail().head(); } else {