@template T of class-string|null
@psalm-return (T is null ? array<class-string, list<object>> : list<object>)
T $className:
array<class-string, list<object>>|list<object>
public function getAttributes(?string $className = null) : array { return $this->controllerEvent ->getAttributes($className); }