int[] getSelectedParameterRows() {
		List<Integer> list = new ArrayList<>();
		for (ParamInfo p : selectedParams) {
			list.add(p.getOrdinal() + 1);
		}
		Collections.sort(list);
		int[] selectedRows = new int[list.size()];
		for (int i = 0; i < selectedRows.length; i++) {
			selectedRows[i] = list.get(i);
		}
		return selectedRows;
	}
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