CodeBlock getBlockWithEntryAt(Address addr){
        Object[] blocks = getObjects(addr);
        for (int i=0; i < blocks.length; i++) {
            CodeBlock block = (CodeBlock) blocks[i];
            Address starts[] = block.getStartAddresses();
            for (int j=0; j < starts.length; j++) {
                if (starts[j].equals(addr)) {
                    return block;
                }
            }
        }
        return null;
    }
Get the cached block which has an entry-point of addr.
@return the block with an entry-point address of addr, or null of
the block was not found.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/CodeBlockCache.java