public default List<CodeCompletion> getCompletions(String cmd, int caretPos) {
		// to preserve backward compatibility with existent implementations
		return getCompletions(cmd);
	}
Gets a {@link List} of {@link CodeCompletion code completions} for the given command
relative to the given caret position.

@param cmd The command to get code completions for
@param caretPos The position of the caret in the input string 'cmd'.
                It should satisfy the constraint {@literal "0 <= caretPos <= cmd.length()"}
@return A {@link List} of {@link CodeCompletion code completions} for the given command
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/interpreter/InterpreterConnection.java