boolean (@Nullable Sdk sdk, @NotNull JavaVersion version) { if (sdk != null && sdk.getSdkType() instanceof JavaSdkType) { JavaVersion v = JavaVersion.tryParse(sdk.getVersionString()); if (v != null) { return version.feature == v.feature && version.minor == v.minor && version.update == v.update; } } return false; }