void (MyRequestor requestor, SuspendContextImpl context, ReferenceType declaringType, @Nullable ObjectReference thisObj) { DebugProcessImpl debugProcess = context.getDebugProcess(); Field field = declaringType.fieldByName(getFieldName()); ModificationWatchpointRequest request = debugProcess.getRequestsManager().createModificationWatchpointRequest(requestor, field); request.addClassFilter(declaringType); if (thisObj != null) { request.addInstanceFilter(thisObj); } request.enable(); }