def METHOD_NAME(self):
    if self.options.with_https == "security":
        if not tools.is_apple_os(self.settings.os):
            raise ConanInvalidConfiguration("security is only valid for Apple products")
    elif self.options.with_https == "winhttp":
        if self.settings.os != "Windows":
            raise ConanInvalidConfiguration("winhttp is only valid on Windows")
    if self.options.with_sha1 == "win32":
        if self.settings.os != "Windows":
            raise ConanInvalidConfiguration("win32 is only valid on Windows")
    if self.options.with_regex == "regcomp" or self.options.with_regex == "regcomp_l":
        if self.settings.compiler == "Visual Studio":
            raise ConanInvalidConfiguration("{} isn't supported by Visual Studio".format(self.options.with_regex))
    if self.settings.os in ["iOS", "tvOS", "watchOS"] and self.options.with_regex == "regcomp_l":
        raise ConanInvalidConfiguration("regcomp_l isn't supported on {}".format(self.settings.os))