private static boolean skipFoldingAnchor(@NotNull FoldRegion region) {
    if (!region.isExpanded()) {
      return Boolean.TRUE.equals(region.getUserData(FoldingModelImpl.HIDE_GUTTER_RENDERER_FOR_COLLAPSED));
    }
    return false;
  }
private static boolean skipFoldingAnchor(@NotNull FoldRegion region)