protected final boolean isTableModificationInProgress(MasterProcedureEnv env) {
    return env.getMasterServices().getMasterProcedureExecutor().getProcedures().stream()
      .filter(p -> !p.isFinished()).filter(p -> p instanceof TableProcedureInterface)
      .map(p -> (TableProcedureInterface) p).filter(p -> getTableName().equals(p.getTableName()))
      .anyMatch(TableQueue::requireTableExclusiveLock);
  }
Some procedures cannot safely run while a table is being modified. Helper method to allow them
to check if such a procedure is running on a table.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/AbstractStateMachineTableProcedure.java