public CodeCompletion getCompletion() {
		int i = jlist.getSelectedIndex();
		if (-1 == i) {
			return null;
		}
		return completionData.get(i);
	}
Returns the currently selected code completion.

Returns "" if there is none.

@return the currently selected code completion, or null if none selected
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/interpreter/CodeCompletionWindow.java