private void createLabel(Address addr, String name) {
		SymbolTable st = program.getSymbolTable();
		Symbol s = st.getGlobalSymbol(name, addr);
		if (s == null) {
			int transactionID = program.startTransaction("Create label");
			try {
				st.createLabel(addr(0x10049e4), name, SourceType.USER_DEFINED);
			}
			catch (InvalidInputException e) {
				// don't care
			}
			finally {
				program.endTransaction(transactionID, true);
			}
		}
	}
Toggle open composite locations within Code Browser
which have locations generated
@param cb
Ghidra/Features/Base/src/test/java/ghidra/app/SampleLocationGenerator.java