<%- unless @params.empty? -%>
  <%= '  '*(@namespace_depth+3) %># Register this action with its valid params when the module is loaded.
  <%= '  '*(@namespace_depth+3) %>#
  <%= '  '*(@namespace_depth+3) %># @since 6.2.0
  <%- if @endpoint_name == 'indices.stats' -%>
    <%= indices_stats_params_registry %>
  <%- else -%>
    <%= '  '*(@namespace_depth+3) %>ParamsRegistry.register(:<%= @method_name %>, [
    <%= '  '*(@namespace_depth+4) %><%= @params.keys.map { |k| ":#{k}" }.join(",\n#{'  '*(@namespace_depth+4)}") %>
    <%= '  '*(@namespace_depth+3) %>].freeze)
  <%- end -%>
<%- end -%>
