private void addRefRepeatables(Collection<RefRepeatComment> from,
			Collection<RefRepeatComment> to) {

		int space = getAvailableSpace();
		int total = 0;
		for (RefRepeatComment item : from) {
			to.add(item);
			total += item.getCommentLineCount();
			if (total == space) {
				return;
			}
		}
	}
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