code: void incrementSafeBlockCount(int replication, boolean skipCheck) {
      if (safeMode != null && safeMode.isOn()) {
        if ((int) replication == minReplication) {
          this.blocksSafe++;
          if(!skipCheck) {
            safeMode.checkMode();
          }
        }
      }
    }
docs: Increment number of blocks that reached minimal replication.
  
  @param replication current replication
  @param skipCheck if true the safemode will not be checked -
  used for processing initial block reports to skip the
  check for every block - at the end checkSafeMode() must be called