def get_instantiation_code(c, method)
      if method.singleton
        ''
      else
        constructor = c.method_list.find { |m| m.name == 'new' }
        if constructor.nil?
          "      #{instance_name(c)} = #{get_complete_class_name(c)}.new\n"
        else
          get_params_initialization_code(constructor) +
            "      #{instance_name(c)} = #{get_complete_class_name(c)}.new#{to_params_part(constructor.params)}\n"
        end
      end
    end
def get_instantiation_code(c, method)
      if method.singleton
        ''
      else
        constructor = c.method_list.find { |m| m.name == 'new' }
        if constructor.nil?
          "      #{instance_name(c)} = #{get_complete_class_name(c)}.new\n"
        else
          get_params_initialization_code(constructor) +
            "      #{instance_name(c)} = #{get_complete_class_name(c)}.new#{to_params_part(constructor.params)}\n"
        end
      end
    end
rubocop:enable Metrics/AbcSize
 -----
 Code generation
 -----

 e.g.
     a = double('a')
     b = double('b')
     bar_baz = BarBaz.new(a, b)