public void setSelectedParameterRows(int[] selectedRows) {

		int[] currentRows = getSelectedParameterRows();
		if (Arrays.equals(currentRows, selectedRows)) {
			return;
		}

		selectedParams.clear();
		List<ParamInfo> parameters = functionData.getParameters();
		for (int i : selectedRows) {
			ParamInfo p;
			if (i == 0) {
				p = functionData.getReturnInfo();
			}
			else {
				p = parameters.get(i - 1);
			}
			selectedParams.add(p);
		}
		Collections.sort(selectedParams);
		notifyDataChanged();
	}
Get the effective function to which changes will be made.  This
will be the same as function unless it is a thunk in which case
the returned function will be the ultimate non-thunk function.
@return non-thunk function
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/editor/FunctionEditorModel.java