The Label Tools macros and Create Page macros both have examples in the docs that show how to make your own superclass that changes their parameters.
These examples fail with this error:
Failed to instantiate AddLabelCustomVariables, Error creating bean with name 'AddLabelCustomVariables': Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.atlassian.confluence.security.PermissionManager' available: expected single matching bean but found 2: permissionManager,permissionManagerTarget
The Create Page extension is broken because the constructor for that class has changed, though it could plausibly have similar dependency injection issues to the above.
We need to fix the docs and provide some automated testing for these examples to make sure we update these examples in the future.