public synchronized boolean wakeIfSuspended(AbstractProcedureScheduler procedureScheduler,
    Procedure<?> proc) {
    if (suspendedProcedures.stream().anyMatch(p -> p.getProcId() == proc.getProcId())) {
      wake(procedureScheduler);
      return true;
    }
    return false;
  }
Wakes up the suspended procedures only if the given {@code proc} is waiting on this event.
<p/>
Mainly used by region assignment to reject stale OpenRegionProcedure/CloseRegionProcedure. Use
with caution as it will cause performance issue if there are lots of procedures waiting on the
event.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureEvent.java