@NotNull
  private WagonTransferListenerAdapter getWagonTransferListenerAdapter(MavenServerProgressIndicator indicator) {
    return new WagonTransferListenerAdapter(indicator) {
      @Override
      protected void downloadProgress(long downloaded, long total) {
        super.downloadProgress(downloaded, total);
        try {
          myIndicator.setFraction(((double)downloaded) / total);
        }
        catch (RemoteException e) {
          throw new RuntimeRemoteException(e);
        }
      }

      @Override
      public void transferCompleted(TransferEvent event) {
        super.transferCompleted(event);
        try {
          myIndicator.setText2("Processing indices...");
        }
        catch (RemoteException e) {
          throw new RuntimeRemoteException(e);
        }
      }
    };
  }
@NotNull
  private WagonTransferListenerAdapter getWagonTransferListenerAdapter(MavenServerProgressIndicator indicator)