public static boolean isValid(CodeCompletion completion) {
		return completion != null && completion.getInsertion() != null;
	}
Returns true if the given CodeCompletion actually would insert something.

@param completion a CodeCompletion
@return true if the given CodeCompletion actually would insert something
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/console/CodeCompletion.java