private void setStackDepthChange(final Program program, final Address address,
			final int newStackDepthChange, final Address callToAddress) {

		if (callToAddress == null) {
			setStackDepthChange(program, address, newStackDepthChange);
			return;
		}
		int result = showPurgeQuestionDialog(funcPlugin.getTool(), address, callToAddress);
		switch (result) {
			case OptionDialog.OPTION_ONE: // Local (SetStackDepthChange)
				setStackDepthChange(program, address, newStackDepthChange);
				break;
			case OptionDialog.OPTION_TWO: // Global (SetFunctionPurge)
				setFunctionPurge(program, address, newStackDepthChange, callToAddress);
				break;
			case OptionDialog.CANCEL_OPTION: // Cancel
				break;
		}
	}
Creates a new action with the given name and associated to the given
plugin.
@param plugin the plugin this action is associated with.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/SetStackDepthChangeAction.java