Collection<DebuggerSession> () { synchronized (mySessions) { final Collection<DebuggerSession> values = mySessions.values(); return values.isEmpty() ? Collections.emptyList() : new ArrayList<>(values); } }