public boolean containsSelection(ProgramSelection selection) {
		if (!hasResults()) {
			return false;
		}

		if (selection == null || selection.isEmpty()) {
			// we 'contain' the empty and null selections (empty to match set theory and null to
			// allow null selections to be set upon us (for clearing)).
			return true;
		}

		return function.getBody().intersects(selection);
	}
An object that represents data for the FunctionGraph plugin.  This object has necessary
information to create a Graph.
Ghidra/Features/FunctionGraph/src/main/java/ghidra/app/plugin/core/functiongraph/mvc/FGData.java