boolean (@NotNull Sdk jdk, String mavenVersion) { if (compareVersionNumbers(mavenVersion, "3.3.1") < 0) { return true; } SdkTypeId sdkType = jdk.getSdkType(); if (sdkType instanceof JavaSdk) { JavaSdkVersion version = ((JavaSdk)sdkType).getVersion(jdk); if (version == null || version.isAtLeast(JavaSdkVersion.JDK_1_7)) { return true; } } return false; }