private boolean createDefinedDataPointerPreview(Set<String> set, Program program,
			Reference reference, Data data) {

		if (!data.isPointer()) {
			return false;
		}

		SymbolTable symbolTable = program.getSymbolTable();
		ReferenceManager referenceManager = program.getReferenceManager();
		Reference pointerReference =
			referenceManager.getPrimaryReferenceFrom(reference.getToAddress(), 0);
		if (pointerReference != null) {
			Symbol symbol = symbolTable.getPrimarySymbol(pointerReference.getToAddress());
			if (operandIsShowingSymbolReference(symbol, reference)) {
				return true; // already displayed by operand
			}
			set.add(POINTER_ARROW + symbol.getName());
			return true;
		}

		Address address = (Address) data.getValue();
		if (address != null && address.getOffset() != 0) {
			set.add(POINTER_ARROW + address);
		}

		return true;
	}
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