private boolean isCursorOnScreen(CodeViewerService service) {
		FieldPanel fieldPanel = service.getFieldPanel();
		int cursorOffset = fieldPanel.getCursorOffset();
		return cursorOffset >= 0; // negative offset means offscreen
	}
Checks whether or not the given tool is currently executing a background
task.

@param tool
           The tool to check.
@return True is the given tool is currently executing a background task;
        False otherwise.
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/plugin/VTSubToolManager.java