code: public void removeFromMoving(InetAddress endpoint)
      {
          assert endpoint != null;
  
          lock.writeLock().lock();
          try
          {
              for (Pair<Token, InetAddress> pair : movingEndpoints)
              {
                  if (pair.right.equals(endpoint))
                  {
                      movingEndpoints.remove(pair);
                      break;
                  }
              }
  
              invalidateCachedRings();
          }
          finally
          {
              lock.writeLock().unlock();
          }
      }
docs: Remove pair of token/address from moving endpoints
  @param endpoint address of the moving node