@Contract(pure = true)
  public static boolean isSet(long flags, long mask) {
    assertOneBitMask(mask);
    return (flags & mask) == mask;
  }
@Contract(pure = true)
  public static boolean isSet(long flags, long mask)