def METHOD_NAME(
    cls, plugin_configuration: "PluginConfiguration", **kwargs
):
    """Validate if provided configuration is correct."""
    if not plugin_configuration.active:
        return
    configuration = plugin_configuration.configuration
    configuration = {item["name"]: item["value"] for item in configuration}
    missing_fields = [
        field for field in REQUIRED_FIELDS if not configuration[field]
    ]
    if missing_fields:
        raise ValidationError(
            {
                field: ValidationError(
                    "The parameter is required.",
                    code=PluginErrorCode.REQUIRED.value,
                )
                for field in missing_fields
            }
        )
    if configuration[SHIPPING_COMPANY] not in SHIPPING_COMPANY_CODES:
        raise ValidationError(
            {
                SHIPPING_COMPANY: ValidationError(
                    "Shipping company code is invalid",
                    code=PluginErrorCode.INVALID.value,
                )
            }
        )
    cls.validate_authentication(plugin_configuration)