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 and Version(self.settings.compiler.version) < minimum_version:
        raise ConanInvalidConfiguration(
            f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support."
        )
    if is_msvc(self) and check_min_vs(self, "193", raise_invalid=False) and Version(self.version) < "3.21.12":
        raise ConanInvalidConfiguration(f"{self.ref} is not compatible with Visual Studio 2022, please use version >= 3.21.12")