private Address getNextSymbolLocation(Program program, Address address) {
		SymbolIterator symIter = program.getSymbolTable().getSymbolIterator(address.add(1), true);
		if (symIter.hasNext()) {
			Symbol nextSym = symIter.next();
			if (nextSym != null) {
				return nextSym.getAddress();
			}
		}
		return program.getMaxAddress();
	}
get the next symbol defined or auto after address

@param program - program to check
@param address - address to get symbol after
@return address of the location of the next symbol or the last address in program
Ghidra/Features/Base/src/main/java/ghidra/app/util/demangler/DemangledVariable.java