code: protected function supports($attribute, $subject)
      {
          if (!in_array($attribute, [Permission::BROWSE, Permission::READ, Permission::EDIT, Permission::ADD, Permission::DELETE, Permission::EXECUTE], true)) {
              return false;
          }
  
          if (!is_object($subject)) {
              return false;
          }
  
          $class = get_class($subject);
  
          if (!$this->entityCollection->contains($class)) {
              return false;
          }
  
          return true;
      }
docs: {@inheritdoc}