protected function findAbility($ability, $entity, $attributes)
{
$onlyOwned = isset($attributes['only_owned']) ? $attributes['only_owned'] : false;
return Models::ability()->where('name', $ability)->forModel($entity, true)->where('only_owned', $onlyOwned)->first();
}