public static @Nullable ValidationInfo checkDetectedPython(@NotNull PyDetectedSdk sdk) {
    if (!"/usr/bin/python3".equals(sdk.getHomePath())) return null;

    //noinspection DialogTitleCapitalization
    final String progressTitle = PyBundle.message("python.cldt.checking");

    if (ProgressManager
      .getInstance()
      .runProcessWithProgressSynchronously(
        MacPythonSdkFlavor::areCommandLineDeveloperToolsAvailable,
        progressTitle,
        true,
        null
      )
    ) {
      return null;
    }

    final HtmlChunk commandChunk = text(getXCodeSelectInstallCommand().getCommandLineString());

    final String message = new HtmlBuilder().append(
      raw(PyBundle.message("python.cldt.required", commandChunk.code()))
    ).toString();

    return new ValidationInfo(message).asWarning().withOKEnabled();
  }
public static @Nullable ValidationInfo checkDetectedPython(@NotNull PyDetectedSdk sdk)