class InvalidJvmVersionHelpDocumentCustomizer implements HelpDocumentCustomizer {

	private final ProjectDescriptionDiff diff;

	private final ProjectDescription description;

	public InvalidJvmVersionHelpDocumentCustomizer(ProjectDescriptionDiff diff, ProjectDescription description) {
		this.diff = diff;
		this.description = description;
	}

	@Override
	public void customize(HelpDocument document) {
		this.diff.ifLanguageChanged(this.description, (original, current) -> {
			String originalJvmVersion = original.jvmVersion();
			String actualJvmVersion = current.jvmVersion();
			if (!Objects.equals(originalJvmVersion, actualJvmVersion)) {
				processJvmVersionDiff(originalJvmVersion, actualJvmVersion).accept(document);
			}
		});
	}

	protected Consumer<HelpDocument> processJvmVersionDiff(String originalJvmVersion, String actualJvmVersion) {<FILL_FUNCTION_BODY>}

}

		return (document) -> {
			if (this.description.getLanguage() instanceof KotlinLanguage) {
				document.getWarnings()
					.addItem(
							"The JVM level was changed from '%s' to '%s' as the Kotlin version does not support Java %s yet."
								.formatted(originalJvmVersion, actualJvmVersion, originalJvmVersion));
			}
			else {
				document.getWarnings()
					.addItem(
							"The JVM level was changed from '%s' to '%s', review the [JDK Version Range](%s) on the wiki for more details."
								.formatted(originalJvmVersion, actualJvmVersion,
										"https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#jdk-version-range"));
			}
		};

	
<no_super_class>