void (@NotNull PyFile file, @NotNull Project project, @NotNull LanguageLevel latestConfiguredVersion) { final List<LanguageLevel> versionsToEnable = getVersionsNewerThan(latestConfiguredVersion); final String versionsList = StringUtil.join(versionsToEnable, ",&nbsp;"); final String message = PyBundle.message("python.compatibility.inspection.advertiser.version.stale.python3.version.warning.message", latestConfiguredVersion, versionsList); showSingletonNotification( project, PyBundle.message("python.compatibility.inspection.advertiser.notifications.title"), message, (notification, event) -> { final boolean enabled = "#yes".equals(event.getDescription()); if (enabled) { enableVersions(project, file, versionsToEnable); } if (enabled || SHOW_ONCE_FOR_VERSION) { getSettings(project).version = PyCompatibilityInspection.LATEST_INSPECTION_VERSION; } }); }