@Deprecated
  public static void removeScrollBorder(@NotNull Component c) {
    JBIterable<JScrollPane> scrollPanes = uiTraverser(c)
      .expand(o -> o == c || o instanceof JPanel || o instanceof JLayeredPane)
      .filter(JScrollPane.class);
    for (JScrollPane scrollPane : scrollPanes) {
      Integer keepBorderSides = ClientProperty.get(scrollPane, KEEP_BORDER_SIDES);
      if (keepBorderSides == null) {
        scrollPane.setBorder(new SideBorder(NamedColorUtil.getBoundsColor(), SideBorder.NONE));
      }
      else if (scrollPane.getBorder() instanceof LineBorder lineBorder) {
        Color color = lineBorder.getLineColor();
        //noinspection MagicConstant
        scrollPane.setBorder(new SideBorder(color, keepBorderSides.intValue()));
      }
      else {
        //noinspection MagicConstant
        scrollPane.setBorder(new SideBorder(NamedColorUtil.getBoundsColor(), keepBorderSides.intValue()));
      }
    }
  }
@Deprecated
  public static void removeScrollBorder(@NotNull Component c)