@Override
	public String getName(CodeBlock block) {
        // get the start address for the block
        // look up the symbol in the symbol table.
        // it should have one if anyone calls it.
        // if not, make up a label

        if (!(block.getModel() instanceof OverlapCodeSubModel)) {
			throw new IllegalArgumentException();
		}

        Address start = block.getFirstStartAddress();

        Symbol symbol = program.getSymbolTable().getPrimarySymbol(start);
        if (symbol != null) {
            return symbol.getName();
        }

        return "SOURCE_SUB" + start.toString();
    }
@see ghidra.program.model.block.CodeBlockModel#getName(ghidra.program.model.block.CodeBlock)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/OverlapCodeSubModel.java