/**
  * Funkce pro připravení nového názvu atributu (takového, který se zatím v seznamu atributů nevyskytuje)
  * @param $miner
  * @param $newAttributeName
  * @return string
  */
 public function prepareNewAttributeName($miner, $newAttributeName)
 {
     $existingAttributeNames = [];
     $attributes = $miner->metasource->attributes;
     if (!empty($attributes)) {
         foreach ($attributes as $attribute) {
             $existingAttributeNames[] = $attribute->name;
         }
     }
     $newAttributeNameBase = StringsHelper::prepareSafeName($newAttributeName);
     $newAttributeName = $newAttributeNameBase;
     $i = 2;
     while (in_array($newAttributeName, $existingAttributeNames)) {
         $newAttributeName = $newAttributeNameBase . '_' . $i;
         $i++;
     }
     return $newAttributeName;
 }