private static @NotNull String invalidMaskError(long mask) {
    return "Mask must have only one bit set, but got: " + Long.toBinaryString(mask);
  }
private static @NotNull String invalidMaskError(long mask)