private int indexOfMemberId(ProfileId id) {
    Assert.assertHoldsLock(this, true);
    Profile[] profs = profiles; // volatile read
    for (int i = 0; i < profs.length; i++) {
      Profile p = profs[i];
      if (id instanceof InternalDistributedMember) {
        if (p.getDistributedMember().equals(id)) {
          return i;
        }
      } else {
        if (p.getId().equals(id)) {
          return i;
        }
      }
    }
    return -1;
  }
Perform work of removing the given member from this advisor.
geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionAdvisor.java