def METHOD_NAME(result_type: Type[R]) \
        -> Type[GenericCubeGeneratorResult[R]]:
    class SpecificCubeGeneratorResult(GenericCubeGeneratorResult[R]):
        @classmethod
        def get_result_schema(cls) -> JsonObjectSchema:
            return result_type.get_schema()
    return SpecificCubeGeneratorResult