private static @Nullable Sdk configureSdk(@NotNull Sdk detectedSdk) {
    final Sdk sdk = detectedSdk instanceof PyDetectedSdk
                    ? PySdkExtKt.setup((PyDetectedSdk)detectedSdk, Arrays.asList(ProjectJdkTable.getInstance().getAllJdks()))
                    : detectedSdk;

    if (sdk != null) {
      invokeLaterOnWriteThreadUnderLock(() -> ProjectJdkTable.getInstance().addJdk(sdk));
    }

    return sdk;
  }
private static @Nullable Sdk configureSdk(@NotNull Sdk detectedSdk)