/**
  * @param ProductInterface $product
  * @param $attributeCode
  *
  * @return bool
  */
 protected function isAttributeEditable(ProductInterface $product, $attributeCode)
 {
     if (!$this->productRepository->hasAttributeInFamily($product->getId(), $attributeCode)) {
         return false;
     }
     if ($this->productRepository->hasAttributeInVariantGroup($product->getId(), $attributeCode)) {
         return false;
     }
     return true;
 }