private boolean isValidReference(Program program, Reference reference) {
		if (!reference.isMemoryReference()) {
			return false;
		}
		Address toAddress = reference.getToAddress();
		return isValidAddress(program, toAddress);
	}
Returns the number of comments that can be added before reaching the maximum number of
comments
@return the number of comments
Ghidra/Features/Base/src/main/java/ghidra/app/util/EolComments.java