def METHOD_NAME(self):
    if self.settings.compiler.get_safe("cppstd"):
        check_min_cppstd(self, self._min_cppstd)
    def loose_lt_semver(v1, v2):
        lv1 = [int(v) for v in v1.split(".")]
        lv2 = [int(v) for v in v2.split(".")]
        min_length = min(len(lv1), len(lv2))
        return lv1[:min_length] < lv2[:min_length]
    minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
    if minimum_version and loose_lt_semver(str(self.settings.compiler.version), minimum_version):
        raise ConanInvalidConfiguration(
            f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not fully support."
        )
    if Version(self.version) >= "2.0.0" and \
        self.settings.compiler == "gcc" and \
        Version(self.settings.compiler.version).major == "9":
        if self.settings.compiler.get_safe("libcxx") == "libstdc++11":
            raise ConanInvalidConfiguration(f"{self.ref} doesn't support GCC 9 with libstdc++11.")
        if self.settings.build_type == "Debug":
            raise ConanInvalidConfiguration(f"{self.ref} doesn't support GCC 9 with Debug build type.")