def METHOD_NAME(self):
    if self.settings.compiler == "gcc":
        if Version(self.settings.compiler.version) < "5.0":
            raise ConanInvalidConfiguration("graphene does not support GCC before 5.0")
    if self.options.with_glib:
        glib_is_shared = self.dependencies["glib"].options.shared
        if self.options.shared and not glib_is_shared:
            raise ConanInvalidConfiguration(
                "Linking a shared library against static glib can cause unexpected behaviour."
            )
        if glib_is_shared and is_msvc_static_runtime(self):
            raise ConanInvalidConfiguration(
                "Linking shared glib with the MSVC static runtime is not supported"
            )