private int findKey(String key) {
        int hashcode = (key.hashCode() & 0x7FFFFFFF) % capacity;

        int p = indexer.first(hashcode);

        while (p != -1) {
            if (keys[p].equals(key)) {
                return p;
            }
            p = indexer.next(p);
        }
        return -1;
    }
Finds the index for a given key.
@param key the key
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/StringKeyIndexer.java