Given a class that is instantiated via a factory, the arguments part of the service definition refers to the factory method, not the class being generated.
However, the symfony plugin thinks otherwise - it thinks the arguments are for the class being generated.
I've created a repo illustrating the issue:
https://github.com/luispabon/idea-symfony-plugin-woes

I have the same issue with the common case of creating a service for a Repository using
factory: ["@doctrine.orm.entity_manager", getRepository]
Most helpful comment
I have the same issue with the common case of creating a service for a
Repositoryusing