SpacePermissionManagerInternal in my plugin but cannot inject it

I tried using the SpacePermissionManagerInternal in my custom plugin but cannot inject it successfully.

The method:
is Deprecated. since 5.9. Use SpacePermissionManagerInternal.removePermission(SpacePermission, instead.

Can you help me, I need to add or remove permissions for the spaces, but cannot inject SpacePermissionManagerInternal in my plugin?

I’m developing a new custom plugin, I change the permissions of some spaces.
I’m using Confluence Server 6.13.0.
The method has been deprecated
and must be used

however I don’t know how to inject the class SpacePermissionManagerInternal.

It seems that the SpacePermissionManagerInternal class is not exposed to developers. Check this answer.