private void showComparisonPanelWithinProvider(boolean show) {
		ListingCodeComparisonPanel dualListingPanel = functionComparisonPanel.getDualListingPanel();
		boolean contains = markupPanel.isAncestorOf(splitPane);
		if (show) {
			if (!contains) {
				// Remove the markupItems panel.
				markupPanel.remove(markupItemsTablePanel);

				// Show the split pane.
				splitPane.add(markupItemsTablePanel);
				splitPane.add(functionComparisonPanel);
				markupPanel.add(splitPane, BorderLayout.CENTER);
				if (dualListingPanel != null) {
					dualListingPanel.getListingPanel(LEFT)
							.setProgramLocationListener(new SourceProgramLocationListener());
					dualListingPanel.getListingPanel(LEFT)
							.setProgramLocationListener(new DestinationProgramLocationListener());
				}

				markupPanel.validate();
				load(controller.getMatchInfo());

				// Since we pull stuff out and put it back, we lose the focus, so set it back to the table.
				markupItemsTable.requestFocus();
			}
		}
		else {
			if (contains) {
				// Remove the split pane.
				if (dualListingPanel != null) {
					dualListingPanel.getListingPanel(LEFT).setProgramLocationListener(null);
					dualListingPanel.getListingPanel(RIGHT).setProgramLocationListener(null);
				}
				markupPanel.remove(splitPane);
				splitPane.remove(functionComparisonPanel);
				splitPane.remove(markupItemsTablePanel);

				// Show only the markupItems panel.
				markupPanel.add(markupItemsTablePanel, BorderLayout.CENTER);

				markupPanel.validate();
				// Since we pull stuff out and put it back, we lose the focus, so set it back to the table.
				markupItemsTable.requestFocus();
			}
		}
		toggleListingVisibility.setSelected(show);
		functionComparisonPanel.updateActionEnablement();
	}
Displays or hides the function comparison panel within the markup items provider.
@param show true indicates to show the function comparison within the provider.
Otherwise, hide it.
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/provider/markuptable/VTMarkupItemsTableProvider.java