public void setContent(@NotNull JComponent c) {
    if (myContent != null) {
      ClientProperty.remove(myContent, SCROLLED_STATE);
      remove(myContent);
    }

    myContent = c;

    add(c, BorderLayout.CENTER);

    if (myBorderless) {
      UIUtil.removeScrollBorder(c);
    }

    revalidate();
    repaint();
  }
public void setContent(@NotNull JComponent c)