void (OrderEnumerator orderEnumerator, Sdk jdk) { ParametersList vmParameters = getVMParametersList(); if (vmParameters.hasParameter(JAVA_ENABLE_PREVIEW_PROPERTY) || !JavaSdkVersionUtil.isAtLeast(jdk, JavaSdkVersion.JDK_11)) { return; } orderEnumerator.forEachModule(module -> { LanguageLevel languageLevel = LanguageLevelUtil.getEffectiveLanguageLevel(module); if (languageLevel.isPreview()) { vmParameters.add(JAVA_ENABLE_PREVIEW_PROPERTY); return false; } return true; }); }