void () { final boolean activated = myIsTrackersActivated.get(); final VirtualMachineProxyImpl proxy = debugProcess.getVirtualMachineProxy(); if (!proxy.canBeModified()) { return; } tracker.getTrackedClasses().forEach((className, type) -> { List<ReferenceType> classes = proxy.classesByName(className); if (classes.isEmpty()) { trackWhenPrepared(className, debugSession, debugProcess, type); } else { for (ReferenceType ref : classes) { trackClass(debugSession, debugProcess, ref, type, activated); } } }); tracker.addTrackerListener(instancesTrackerListener); }