@Override
    public String apply(CharSequence chars) {
        int idx = localIdxFromHash(chars);
        String[] arr = table;
        String text = arr[idx];

        // On a cache hit, return the value if it matches. Otherwise, overwrite this value.
        if (textEquals(chars, text)) {
            return text;
        } else {
            String value = chars.toString();
            arr[idx] = value;
            return value;
        }
    }
Create a string table with a specific number of entries.

@param sizeBits Size of the table based on bit shifting (e.g., 1 -> 2, 2 -> 4, ..., 10 -> 1024, 11 -> 2048).
smithy-model/src/main/java/software/amazon/smithy/model/loader/StringTable.java