public static Presentation updateSphinxQuickStartRequiredAction(final AnActionEvent e) {
    final Presentation presentation = e.getPresentation();

    final Project project = e.getData(CommonDataKeys.PROJECT);
    if (project != null) {
      Module module = e.getData(PlatformCoreDataKeys.MODULE);
      if (module == null) {
        Module[] modules = ModuleManager.getInstance(project).getModules();
        module = modules.length == 0 ? null : modules [0];
      }
      if (module != null) {
        final Sdk sdk = PythonSdkUtil.findPythonSdk(module);
        if (sdk != null) {
          PythonPackageManager manager = PythonPackageManager.Companion.forSdk(project, sdk);
          presentation.setEnabled(PythonPackageManagerExt.isInstalled(manager, "Sphinx"));
        }
      }
    }
    return presentation;
  }
public static Presentation updateSphinxQuickStartRequiredAction(final AnActionEvent e)