def METHOD_NAME(self):
    if self.settings.compiler.cppstd:
        check_min_cppstd(self, self._min_cppstd)
    check_min_vs(self, 191)
    if not is_msvc(self):
        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 self.options.shared:
        raise ConanInvalidConfiguration(f"{self.ref} can not be built as shared on Visual Studio and msvc.")