void (@NotNull final AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); 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(); } }