Set<String> (RemoteDebugger debugger) { Set<String> result = new HashSet<>(); for (Map.Entry<String, RemoteDebugger> entry : myMultiProcessDebugger.myThreadRegistry.myThreadIdToDebugger.entrySet()) { if (entry.getValue() == debugger) { result.add(entry.getKey()); } } return result; }