def METHOD_NAME(cls, sources: Sources, values) -> Sources:
    """Check that the sources are valid."""
    cls.check_source_has_parameters_for_each_supported_metric(sources, values)
    cls.check_metric_supports_source(sources, values)
    cls.check_source_configurations(sources, values)
    cls.check_quality_time_metric_types(sources, values)
    return sources