@Override
  public void actionPerformed(@NotNull final AnActionEvent e) {
    Project project = e.getData(CommonDataKeys.PROJECT);
    if (project == null) return;
    if (!isEnabled(project)) return;
    VirtualFile targetDirectory = ProjectUtil.guessProjectDir(project);
    if (targetDirectory == null) {
      LOG.warn("Project directory is null");
      return;
    }

    StartUseVcsDialog dialog = new StartUseVcsDialog(project, targetDirectory.getPath());
    if (dialog.showAndGet()) {
      AbstractVcs vcs = dialog.getVcs();
      vcs.enableIntegration();
    }
  }
@Override
  public void actionPerformed(@NotNull final AnActionEvent e)