@VisibleForTesting
  protected HeapMemoryMonitor setMostRecentEvent(
      MemoryEvent mostRecentEvent) {
    this.mostRecentEvent = mostRecentEvent;
    return this;
  }
Determines if the given member is in a heap critical state.

@param member Member to check.

@return True if the member's heap memory is in a critical state, false otherwise.
geode-core/src/main/java/org/apache/geode/internal/cache/control/HeapMemoryMonitor.java