@NotNull
  private static List<ProcessInfo> getProcessInfos(@NotNull XAttachHost host) {
    try {
      return host.getProcessList();
    }
    catch (ExecutionException e) {
      Notifications.Bus.notify(new Notification(
        "Attach to Process action",
        XDebuggerBundle.message("xdebugger.attach.action.items.error.title"),
        XDebuggerBundle.message("xdebugger.attach.action.items.error.message"),
        NotificationType.WARNING));
      LOG.warn("Error getting process list from the host " + host + ": " + e.getMessage());

      return Collections.emptyList();
    }
  }
@NotNull
  private static List<ProcessInfo> getProcessInfos(@NotNull XAttachHost host)