private @Nullable Sdk lookupGradleJvm(@NotNull String sdkName) {
    var expectedSdkVersion = com.intellij.util.lang.JavaVersion.tryParse(sdkName);
    if (expectedSdkVersion == null) {
      return null;
    }
    var projectSettings = getProjectSettings();
    if (projectSettings == null) {
      return null;
    }
    var gradleJvm = projectSettings.getGradleJvm();
    if (gradleJvm == null) {
      return null;
    }
    var sdk = ProjectJdkTable.getInstance().findJdk(gradleJvm);
    if (sdk == null) {
      return null;
    }
    var actualSdkVersion = com.intellij.util.lang.JavaVersion.tryParse(sdk.getVersionString());
    if (actualSdkVersion == null) {
      return null;
    }
    if (actualSdkVersion.feature != expectedSdkVersion.feature) {
      return null;
    }
    return sdk;
  }
private @Nullable Sdk lookupGradleJvm(@NotNull String sdkName)