public static function configBit(int $flags, int $mask, bool $condition): int
    {
        return $condition
            ? static::setBit($flags, $mask)
            : static::clearBit($flags, $mask);
    }