def METHOD_NAME(self, context: CoreContext) -> None:
    try:
        package_list = []
        cfg = context.configuration
        is_disabled = cfg.get_value(ConfigKey.VERSION_CHECK_DISABLED.value)
        if is_disabled:
            log.debug(
                "VERSION_CHECK_DISABLED is set to true, skipping version check."
            )
            return
        package_name = cfg.get_value(ConfigKey.PACKAGE_NAME.value)
        package_index = cfg.get_value(ConfigKey.PACKAGE_INDEX.value)
        if new_package(package_name, package_index).check():
            log.debug(
                f"New version found for package {package_name} from index {package_index}"
            )
            package_list.append(package_name)
        if cfg.get_value(ConfigKey.VERSION_CHECK_PLUGINS.value):
            log.debug("Will check for newer versions for all installed plugins.")
            for dist_name, _ in version.list_installed_plugins():
                if new_package(dist_name, package_index).check():
                    package_list.append(dist_name)
        self._print_new_version_message(package_list, package_index)
    except Exception as e:
        log.debug(
            f"Could not check for new version release. "
            f"Error was {e}. We are ignoring the error."
        )