/** * @param string $code * * @return AttributeGroupInterface|null */ protected function findAttributeGroup($code) { $attributeGroup = $this->attrGroupRepo->findOneByIdentifier($code); return $attributeGroup; }