By default, this method will not be called and does not need to be implemented. Only when $this->mustResolveTargetDir is true. E.g. the Psr0Psr4 plugin does not implement this method.

Btw, the logic comes from here, https://github.com/composer/composer/blob/master/src/Composer/Autoload/AutoloadGenerator.php#L578