def METHOD_NAME(configs, _type: str, Parameter, PluginConfig):
    for config in configs:
        for param_name, param_values in config.params.items():
            param = Parameter(
                visualizer_config=config,
                name=param_name,
                type=param_values["type"],
                description=param_values["description"],
                is_secret=False,
                required=param_values.get("required", False),
            )
            param.full_clean()
            param.save()
            if "default" in param_values:
                if param_values["default"] is None and param_values["type"] == "str":
                    param_values["default"] = ""
                PluginConfig.objects.get_or_create(
                    owner=None,
                    value=param_values["default"],
                    plugin_name=config.name,
                    attribute=param_name,
                    type=_type,
                    config_type="1",
                )
        for secret_name, secret_values in config.secrets.items():
            secret = Parameter(
                visualizer_config=config,
                name=secret_name,
                type=secret_values["type"],
                description=secret_values["description"],
                is_secret=True,
                required=secret_values["required"],
            )
            secret.full_clean()
            secret.save()
            if "default" in secret_values:
                PluginConfig.objects.get_or_create(
                    owner=None,
                    value=secret_values["default"],
                    plugin_name=config.name,
                    attribute=secret_name,
                    type=_type,
                    config_type="2",
                )