GROOVY-6739: Allow to implement and register a type checking extension as a subclass of TypeCheckingExtension