@Override
  public boolean indexExists(File dir, MavenToken token) throws RemoteException {
    MavenServerUtil.checkToken(token);
    try {
      try (FSDirectory directory = FSDirectory.open(dir.toPath())) {
        return DirectoryReader.indexExists(directory);
      }
    }
    catch (Exception ignore) {
      return false;
    }
  }
@Override
  public boolean indexExists(File dir, MavenToken token)