code: public static boolean anySet(Object baseObject, long baseOffset, long bitSetWidthInWords) {
      long addr = baseOffset;
      for (int i = 0; i < bitSetWidthInWords; i++, addr += WORD_SIZE) {
        if (Platform.getLong(baseObject, addr) != 0) {
          return true;
        }
      }
      return false;
    }
docs: Returns {@code true} if any bit is set.