/**
  * Check if an attribute can be indexed.
  *
  * @param AttributeInterface $attribute Entity attribute.
  *
  * @return boolean
  */
 private function canIndexAttribute(AttributeInterface $attribute)
 {
     $canIndex = $attribute->getBackendType() != 'static';
     if ($canIndex && $attribute->getBackendModel()) {
         $canIndex = in_array($attribute->getBackendModel(), $this->indexedBackendModels);
     }
     return $canIndex;
 }