@Override
  public Dimension getPreferredSize() {
    myLastPreferredHeight = editor.getPreferredHeight();
    return new Dimension(maxContentWidth, myLastPreferredHeight);
  }
@Override
  public Dimension getPreferredSize()