private static long getDebugSessionsCount() {
    return Arrays.stream(ProjectManager.getInstance().getOpenProjects())
      .filter(p -> !p.isDisposed())
      .mapToInt(p -> XDebuggerManager.getInstance(p).getDebugSessions().length)
      .sum();
  }
private static long getDebugSessionsCount()