@Override
  protected boolean initOrNotifyError(final @NotNull VirtualFile directory) {
    if (HgInit.createRepository(myProject, directory)) {
      refreshVcsDir(directory, HgUtil.DOT_HG);
      return true;
    }
    return false;
  }
@Override
  protected boolean initOrNotifyError(final @NotNull VirtualFile directory)