Set<String> (@NotNull Project project) { return StreamEx.of(DebuggerManagerEx.getInstanceEx(project).getSessions()) .map(s -> s.getDebugEnvironment().getRemoteConnection()) .select(PidRemoteConnection.class) .map(PidRemoteConnection::getPid) .toSet(); }