private void checkHeadlessStatus() throws ImproperUseException {
		if (headless == null || !isRunningHeadless()) {
			throw new ImproperUseException("This method can only be used in the headless case!");
		}
	}
Checks to see if this script is running in headless mode (it should be!).
<p>
This method should be called at the beginning of every public method in HeadlessScript
that accesses HeadlessAnalyzer methods (for instance, 'headless.isAnalysisEnabled()').
The call to this method can not be placed in the constructor, because 'setHeadlessInstance', 
which connects the script with the current headless instance, is not called until after the 
call to the constructor.
  
@throws ImproperUseException if not in headless mode or headless instance not set
Ghidra/Features/Base/src/main/java/ghidra/app/util/headless/HeadlessScript.java