You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nested_form_field.rb
    path of file: ./repos/form_core/test/dummy/app/models/fields
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Fields
  class NestedFormField < Field
    after_create do
      build_nested_form.save!
    end

    serialize :validations, Validations::NestedFormField
    serialize :options, NonConfigurable

    def attached_nested_form?
      true
    end

    def interpret_to(model, overrides: {})
      check_model_validity!(model)

      accessibility = overrides.fetch(:accessibility, self.accessibility)
      return model if accessibility == :hidden

      nested_model = nested_form.to_virtual_model(overrides: { _global: { acces
    
    def interpret_to(model, overrides: {})
      check_model_validity!(model)

      accessibility = overrides.fetch(:accessibility, self.accessibility)
      return model if accessibility == :hidden

      nested_model = nested_form.to_virtual_model(overrides: { _global: { accessibility: accessibility } })

      model.nested_models[name] = nested_model

      model.embeds_one name, anonymous_class: nested_model, validate: true
      model.accepts_nested_attributes_for name, reject_if: :all_blank
      model.attr_readonly name if accessibility == :readonly

      interpret_validations_to model, accessibility, overrides
      interpret_extra_to model, accessibility, overrides

      model
    end