private void compareSelectedFunctions() {
		Set<Function> functions = new HashSet<>();
		int[] selectedRows = functionTable.getSelectedRows();

		List<FunctionRowObject> functionRowObjects = functionModel.getRowObjects(selectedRows);
		for (FunctionRowObject functionRowObject : functionRowObjects) {
			Function rowFunction = functionRowObject.getFunction();
			functions.add(rowFunction);
		}

		FunctionComparisonService service = getTool().getService(FunctionComparisonService.class);
		service.createComparison(functions);
	}
Constructor

@param plugin the function window plugin
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/functionwindow/FunctionWindowProvider.java