public CodeComparisonPanel getCodeComparisonPanelByName(String name) {
		for (CodeComparisonPanel codeComparisonPanel : codeComparisonPanels) {
			if (name.equals(codeComparisonPanel.getName())) {
				return codeComparisonPanel;
			}
		}
		return null;
	}
Remove all views in the tabbed pane
Ghidra/Features/Base/src/main/java/ghidra/features/base/codecompare/panel/FunctionComparisonPanel.java