@TraceMethod(display = "Add count filter")
	public void add_count_filter(
			@Param(
				schema = "Event",
				description = "Event",
				display = "Event",
				name = "event") RmiTraceObject obj,
			@Param(
				description = "Count",
				display = "MaxCount",
				name = "count") int count) {
		Object ctxt = getObjectFromPath(obj.getPath());
		if (ctxt instanceof EventRequest req) {
			req.disable();
			req.addCountFilter(count);
			cmds.setValue(obj.getPath(), "Count", count);
			req.enable();
			cmds.putEvents();
		}
	}
NB: For the VirtualMachine, the step methods add requests for break-on-step for all threads.
These requests will remain pending until the VM is resumed.
Ghidra/Debug/Debugger-jpda/src/main/java/ghidra/dbg/jdi/rmi/jpda/JdiMethods.java