List<VirtualFile> () { Collection<DebuggerSession> sessions = DebuggerManagerEx.getInstanceEx(myProject).getSessions(); if (sessions.isEmpty()) { return Collections.emptyList(); } List<VirtualFile> res = new SmartList<>(); for (DebuggerSession session : sessions) { Sdk jre = session.getAlternativeJre(); if (jre != null) { res.addAll(getClassRoots(jre)); } } return res; }