private void addActionsToList(List<DockingActionIf> actionList,
			List<DockingActionIf> newActionList, int maxActionCount) {
		for (int i = 0; i < newActionList.size() && actionList.size() < maxActionCount; i++) {
			actionList.add(newActionList.get(i));
		}
	}
Adds the actions in {@code newActionList} to {@code actionList} while the size of
{@code actionList} is less than the given {@link #MAX_DELETE_ACTIONS}.

@param actionList The list to add to
@param newActionList The list containing items to add
@param maxActionCount the maximum number of items that the actionList can contain
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/bookmark/BookmarkPlugin.java