@NotNull
  static List<LineMarkerInfo<?>> getFileSeparators(@NotNull PsiFile file, @NotNull Document document) {
    ApplicationManager.getApplication().assertIsNonDispatchThread();
    ApplicationManager.getApplication().assertReadAccessAllowed();
    List<LineMarkerInfo<?>> result = new ArrayList<>();
    // need to run highlighting under DaemonProgressIndicator
    DaemonProgressIndicator indicator = new DaemonProgressIndicator();

    ProgressManager.getInstance().executeProcessUnderProgress(() -> {
      HighlightingSessionImpl.runInsideHighlightingSession(file, null, ProperTextRange.create(file.getTextRange()), false, __ -> {
        for (LineMarkerInfo<?> lineMarkerInfo : LineMarkersPass.queryLineMarkers(file, document)) {
          if (lineMarkerInfo.separatorColor != null) {
            result.add(lineMarkerInfo);
          }
        }
        result.sort(Comparator.comparingInt(i -> getDisplayLine(i, document)));
      });
    }, indicator);
    return result;
  }
@NotNull
  static List<LineMarkerInfo<?>> getFileSeparators(@NotNull PsiFile file, @NotNull Document document)