private static String getInstallPythonCommand(Project project) {
    String version = "";
    int pythonStringLength = "Python ".length();
    RunnerAndConfigurationSettings selectedConfiguration = RunManager.getInstance(project).getSelectedConfiguration();
      if (selectedConfiguration != null) {
        RunConfiguration runConfiguration = selectedConfiguration.getConfiguration();
        if (runConfiguration instanceof PythonRunConfiguration) {
          Sdk pythonSdk = ((PythonRunConfiguration)runConfiguration ).getSdk();
          if (pythonSdk != null) {
            String versionString = pythonSdk.getVersionString();
            if (versionString != null && versionString.length() > pythonStringLength) {
              version = versionString.substring(pythonStringLength, versionString.lastIndexOf('.'));
            }
          }
        }
      }

    return PyBundle.message("debugger.cython.extension.install.python.command", version);
  }
private static String getInstallPythonCommand(Project project)