presto-main/src/main/java/io/prestosql/SystemSessionProperties.java/SystemSessionProperties/validateValueIsPowerOfTwo
class SystemSessionProperties:    private static int validateValueIsPowerOfTwo(Object value, String property)
    {
        int intValue = ((Number) requireNonNull(value, "value is null")).intValue();
        if (Integer.bitCount(intValue) != 1) {
            throw new PrestoException(
                    INVALID_SESSION_PROPERTY,
                    format("%s must be a power of 2: %s", property, intValue));
        }
        return intValue;
    }