private boolean createFunctionCallPreview(Set<String> set, Reference reference, Program program,
			Address toAddress) {

		if (extraCommentsOption.getAutoFunction() == EolEnablement.NEVER) {
			return false;
		}

		RefType type = reference.getReferenceType();
		if (!type.isFlow()) {
			return false;
		}

		if (type.isIndirect()) {
			return false;
		}

		if (type.isCall()) {
			String signature = getFunctionSignature(program, toAddress);
			if (signature != null) {
				set.add(signature);
			}
		}

		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