def METHOD_NAME(self):
    if self.settings.compiler.get_safe("cppstd"):
        check_min_cppstd(self, self._min_cppstd)
    min_version = self._minimum_compilers_version.get(
        str(self.settings.compiler))
    if not min_version:
        self.output.warning(f"{self.ref} recipe lacks information about the {self.settings.compiler} "
                            "compiler support.")
    else:
        if Version(self.settings.compiler.version) < min_version:
            raise ConanInvalidConfiguration(
                f"{self.ref} requires C++{self._min_cppstd} support. "
                f"The current compiler {self.settings.compiler} {self.settings.compiler.version} does not support it.")
    if str(self.settings.compiler) == "Visual Studio" and "16.6" <= Version(self.settings.compiler.version) < "17.0":
        raise ConanInvalidConfiguration(
            "Unsupported Visual Studio version due to upstream bug. The supported Visual Studio versions are (< 16.6 or 17.0 <=)."
            "See upstream issue https://github.com/kokkos/mdspan/issues/26 for details.")
    # TODO: check msvcc version more precisely
    if self.settings.compiler == "msvc" and Version(self.settings.compiler.version) == "192":
        raise ConanInvalidConfiguration(
            "Unsupported MSVC version due to upstream bug. The supported MSVC versions are (< 192 or 193 <=)."
            "See upstream issue https://github.com/kokkos/mdspan/issues/26 for details.")