@Override
      public void validateSelectedFiles(VirtualFile @NotNull [] files) throws Exception {
        if (HgUtil.isHgRoot(files[0])) {
          throw new ConfigurationException(HgBundle.message("hg4idea.init.this.is.hg.root", files[0].getPresentableUrl()));
        }
        updateEverything();
      }
@Override
      public void validateSelectedFiles(VirtualFile @NotNull [] files)