private void createLabel(Address addr, String label) {
		if (label.length() > MAX_LABEL_LENGTH) {
			label = label.substring(0, MAX_LABEL_LENGTH) + LOCALIZATION_SEPARATOR + addr;
		}

		try {
			doCreateLabel(addr, label);
			return;
		}
		catch (DuplicateNameException exc) {
			if (labelAlreadyExists(addr, label)) {
				// ignore label if it already exists
				return;
			}
		}
		catch (InvalidInputException exc) {
			// handled below
		}

		createLocalizedLabel(addr, label);
	}
Creates an analysis (not user defined) type of label with the specified name at the
program's address.
@param addr the address
@param label the name for the label
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/MakeStringsTask.java