private static void updateIndicatorStatus(MavenServerProgressIndicator indicator,
                                            IndexingContext context,
                                            IndexUpdateResult updateResult,
                                            Date currentTimestamp) throws RemoteException {
    if (updateResult.isFullUpdate()) {
      indicator.setText("Index for " + context.getRepositoryUrl() + " updated");
    }
    else if (updateResult.getTimestamp() != null && currentTimestamp != null && updateResult.getTimestamp().equals(currentTimestamp)) {
      indicator.setText("Index for " + context.getRepositoryUrl() + "is up to date!");
    }
    else {
      indicator.setText("Index for " + context.getRepositoryUrl() + " incrementally updated");
    }
  }
private static void updateIndicatorStatus(MavenServerProgressIndicator indicator,
                                            IndexingContext context,
                                            IndexUpdateResult updateResult,
                                            Date currentTimestamp)