private static @NotNull JComponent wrapWithPane(@NotNull JComponent c, int top, int left, int right, boolean scrollPane) {
    if (scrollPane) {
      c = ScrollPaneFactory.createScrollPane(c);
    }
    c.setBorder(JBUI.Borders.customLine(OnePixelDivider.BACKGROUND, top, left, 1, right));
    return c;
  }
private static @NotNull JComponent wrapWithPane(@NotNull JComponent c, int top, int left, int right, boolean scrollPane)