code: public function getAuthorities()
      {
          $authorities = [];
          foreach ($this->getAll() as $typeItem) {
              if (isset($typeItem->object) && $typeItem->object->getBehavior('Authority') !== null) {
                  $authorities[$typeItem->object->systemId] = $typeItem->object;
              }
          }
  
          return $authorities;
      }
docs: Get authorities.
  
  @return [[@doctodo return_type:getAuthorities]] [[@doctodo return_description:getAuthorities]]