boolean hasSelection() {
		ProgramSelection selection = getSelection();
		return selection != null && !selection.isEmpty();
	}
Returns true if the current program has a selection
@return true if the current program has a selection
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/checksums/ComputeChecksumsPlugin.java