When the component implements the `StatePersistent` interface, the [`\Nette\Application\UI\Presenter::getGlobalState`](https://github.com/nette/application/blob/914105fa1f2c2b628a7b428da9cc455ed50054b3/src/Application/UI/Presenter.php#L935) calls the `getUniqueId` method, so it should be part of the interface also.