private AddressSetView getScopeForCallGraph(Function function) {
		AddressSet set = new AddressSet();
		set.add(function.getBody());
		try {
			for (CodeBlock block : blockModel.getCodeBlocksContaining(function.getEntryPoint(),
				taskMonitor)) {
				CodeBlockReferenceIterator it = blockModel.getDestinations(block, taskMonitor);
				while (it.hasNext()) {
					CodeBlockReference next = it.next();
					set.add(next.getDestinationBlock());
				}
				it = blockModel.getSources(block, taskMonitor);
				while (it.hasNext()) {
					CodeBlockReference next = it.next();
					set.add(next.getSourceBlock());
				}
			}
		}
		catch (CancelledException e) {
			// just return, the task is being cancelled.
		}

		return set;
	}
Set the maximum number of code lines which will be used per block when
showCode is enabled.
@param maxLines maximum number of code lines
Ghidra/Features/ProgramGraph/src/main/java/ghidra/graph/program/BlockGraphTask.java