public static DecompileOptions getDecompileOptions(ServiceProvider serviceProvider,
			Program program) {
		DecompileOptions options;
		options = new DecompileOptions();
		OptionsService service = null;
		if (serviceProvider != null) {
			service = serviceProvider.getService(OptionsService.class);
		}
		if (service != null) {
			ToolOptions opt = service.getOptions("Decompiler");
			ToolOptions fieldOptions = service.getOptions(GhidraOptions.CATEGORY_BROWSER_FIELDS);
			options.grabFromToolAndProgram(fieldOptions, opt, program);
		}
		else {
			options.grabFromProgram(program);
		}
		return options;
	}
Gather decompiler options from tool and program.  If tool is null or does not provide
a {@link OptionsService} provider only options stored within the program will be consumed.
@param serviceProvider plugin tool or service provider providing access to 
{@link OptionsService}
@param program program
@return decompiler options
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerUtils.java