def METHOD_NAME(self):
    if self.settings.compiler.get_safe("cppstd"):
        check_min_cppstd(self, self._min_cppstd)
    minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
    if minimum_version:
        if Version(self.settings.compiler.version) < minimum_version:
            raise ConanInvalidConfiguration(
                f"{self.name} requires C++{self._min_cppstd}, which your compiler does not support."
            )
    else:
        self.output.warning(
            f"{self.name} requires C++{self._min_cppstd}. Your compiler is unknown. Assuming it supports"
            f" C++{self._min_cppstd}."
        )