private String renameVarUniquely(Symbol namedSymbol, SourceType source) {
		String name = namedSymbol.getName();
		for (int i = 1; i < Integer.MAX_VALUE; i++) {
			String newName = name + SYMBOL_CONFLICT_SUFFIX + i;
			try {
				namedSymbol.setName(newName, namedSymbol.getSource());
				return newName;
			}
			catch (DuplicateNameException e) {
				continue;
			}
			catch (InvalidInputException e) {
				break;
			}
		}
		return null;
	}
Changes the variable's name to a unique name.
@param namedSymbol the variable's symbol
@param source the source of this variable's symbol
@return the new name or null if it couldn't be renamed.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMerge.java