protected synchronized void checkDepartureOf(final InternalDistributedMember member,
        final List grantsReferencingMember) {

      if (destroyed) {
        return;
      }
      if (member.equals(lessee)) {
        grantsReferencingMember.add(this);
        return;
      }
      if (pendingRequests != null) {
        DLockRequestMessage req = null;
        for (final Object pendingRequest : pendingRequests) {
          req = (DLockRequestMessage) pendingRequest;
          if (member.equals(req.getSender())) {
            grantsReferencingMember.add(this);
            return;
          }
        }
      }
    }
Adds this grant to the list if it references the departed member.
<p>
Synchronizes on this grant token.

@param member the departed member
@param grantsReferencingMember list to add grant to if it references departed member
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockGrantor.java