code: public boolean matchesBranchId(byte[] branchQualifier) {
          if (branchQualifier.length != Xid.MAXBQUALSIZE) {
              return false;
          }
          long id = extractLong(branchQualifier, 4);
          if (id >= start) {
              // newly created branch, not recoverable
              return false;
          }
  
          for (int i = 12; i < branchQualifier.length; i++) {
              if (branchQualifier[i] != baseId[i]) {
                  return false;
              }
          }
          return true;
      }
docs: Checks whether or not the given byte array matches the branch id.
  @param branchQualifier the branch qualifier
  @return true if it matches