public void cloneHighlights(DecompilerPanel sourcePanel) {

		Function function = decompileData.getFunction();
		cloneServiceHiglighters(sourcePanel);

		//
		// Keep only those secondary highlighters for the current function.  This ensures that the
		// clone will match the cloned decompiler.
		//
		Set<DecompilerHighlighter> secondaryHighlighters =
			sourcePanel.getSecondaryHighlihgtersByFunction(function);

		//
		// We do NOT clone the secondary highlighters.  This allows the user the remove them
		// from the primary provider without effecting the cloned provider and vice versa.
		//
		for (DecompilerHighlighter highlighter : secondaryHighlighters) {

			if (!(highlighter instanceof ClangDecompilerHighlighter clangHighlighter)) {
				continue;
			}

			DecompilerHighlighter newHighlighter = clangHighlighter.copy(this);
			highlightersById.put(newHighlighter.getId(), newHighlighter);
			applySecondaryHighlights(newHighlighter);
		}
	}
Called by the provider to clone all highlights in the source panel and apply them to this
panel

@param sourcePanel the panel that was cloned
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java