public static @NotNull JScrollPane createScrollPane(Component view, boolean withoutBorder) {
    JBScrollPane scrollPane = new JBScrollPane(view);
    if (withoutBorder) {
      scrollPane.setBorder(JBUI.Borders.empty()); // set empty border, because setting null doesn't always take effect
      scrollPane.setViewportBorder(JBUI.Borders.empty());
    }
    return scrollPane;
  }
public static @NotNull JScrollPane createScrollPane(Component view, boolean withoutBorder)