public static Program getCurrentProgram(PluginTool tool) {
		ProgramManager pmService = tool.getService(ProgramManager.class);
		return (pmService == null ? null : pmService.getCurrentProgram());
	}
Returns the current program for the given tool or null if no program is open.
@param tool the tool get the current program for
@return the current program for the given tool or null if no program is open
Ghidra/Features/Base/src/main/java/ghidra/program/util/GhidraProgramUtilities.java