def METHOD_NAME(self):
    compiler = self.settings.compiler
    compiler_name = str(compiler)
    if compiler.get_safe("cppstd"):
        check_min_cppstd(self, self._min_cppstd)
    minimum_version = self._minimum_compilers_version.get(compiler_name, False)
    if minimum_version and Version(compiler.version) < minimum_version:
        raise ConanInvalidConfiguration(
            f"Requires compiler {compiler_name} minimum version: {minimum_version} with C++17 support."
        )