public static void showXrefs(Navigatable navigatable, ServiceProvider serviceProvider,
			TableService service, ProgramLocation location, Collection<Reference> xrefs) {

		Address address = location.getAddress();
		Program program = location.getProgram();
		FunctionManager fm = program.getFunctionManager();
		Function function = fm.getFunctionAt(address);

		ReferencesFromTableModel model;
		if (function == null) {
			model = new ReferencesFromTableModel(xrefs, serviceProvider, program);
		}
		else {
			model = new FunctionXrefsTableModel(function, xrefs, serviceProvider, program);
		}

		String title = generateXRefTitle(location);
		TableComponentProvider<ReferenceEndpoint> provider =
			service.showTable(title, "Xrefs", model, "Xrefs", navigatable);
		provider.installRemoveItemsAction();

		if (function != null) {
			//@formatter:off
			String actionName = "Show Thunk Xrefs";
			new ToggleActionBuilder(actionName, provider.getActionOwner())
				.toolBarIcon(ResourceManager.loadImage("images/ThunkFunction.gif"))
				.toolBarGroup("A")
				.helpLocation(new HelpLocation(HelpTopics.CODE_BROWSER, actionName))
				.selected(false)
				.onAction(c -> {
					((FunctionXrefsTableModel) model).toggleShowAllThunkXRefs();
				})
				.buildAndInstallLocal(provider);
			//@formatter:on

			return;
		}

	}
Shows all xrefs to the given location in a new table.

@param navigatable the navigatable used for navigation from the table
@param serviceProvider the service provider needed to wire navigation
@param service the service needed to show the table
@param location the location for which to find references
@param xrefs the xrefs to show
Ghidra/Features/Base/src/main/java/ghidra/app/util/XReferenceUtils.java