protected Boolean findBool(ActionName action, ActionContext context,
			ObjectArgumentPolicy policy) {
		if (!Objects.equals(action, ActionName.TOGGLE)) {
			return null;
		}
		TraceObject object = findObject(context, policy);
		if (object == null) {
			return null;
		}
		TraceObjectValue attrEnabled =
			object.getAttribute(getSnap(), TraceObjectTogglable.KEY_ENABLED);
		boolean enabled = attrEnabled != null && attrEnabled.getValue() instanceof Boolean b && b;
		return !enabled;
	}
"Find" a boolean value for the given context.

<p>
At the moment, this is only used for toggle actions, where the "found" parameter is the
opposite of the context object's current state. That object is presumed the object argument
of the "toggle" method.

@param action the action name, so this is only applied to {@link ActionName#TOGGLE}
@param context the context in which to find the object whose current state is to be
           considered
@param policy how object arguments can be found
@return a value if found, null if not
Ghidra/Debug/Debugger-rmi-trace/src/main/java/ghidra/app/plugin/core/debug/service/tracermi/TraceRmiTarget.java