public override void OnBeforeCompleteType(
            ITypeCompletionContext completionContext,
            DefinitionBase?definition,
            IDictionary <string, object?> contextData)
        {
            if (definition is FilterInputTypeDefinition def)
            {
                IFilterConvention convention = GetConvention(
                    completionContext.DescriptorContext,
                    def.Scope);

                foreach (InputFieldDefinition field in def.Fields)
                {
                    if (field is FilterFieldDefinition filterFieldDefinition)
                    {
                        if (filterFieldDefinition.Type is null)
                        {
                            throw ThrowHelper.FilterInterceptor_OperationHasNoTypeSpecified(
                                      def,
                                      filterFieldDefinition);
                        }

                        if (completionContext.TryPredictTypeKind(
                                filterFieldDefinition.Type,
                                out TypeKind kind) &&
                            kind != TypeKind.Scalar && kind != TypeKind.Enum)
                        {
                            field.Type = field.Type.With(scope: completionContext.Scope);
                        }

                        if (filterFieldDefinition.Handler is null)
                        {
                            if (convention.TryGetHandler(
                                    completionContext,
                                    def,
                                    filterFieldDefinition,
                                    out IFilterFieldHandler? handler))
                            {
                                filterFieldDefinition.Handler = handler;
                            }
                            else
                            {
                                throw ThrowHelper.FilterInterceptor_NoHandlerFoundForField(
                                          def,
                                          filterFieldDefinition);
                            }
                        }
                    }
                }
            }
        }