@Override
  public void paint(Graphics g) {
    try {
      if (myArea.getRootComponent() != null) {
        Graphics2D g2d = (Graphics2D)g;
        paintStaticDecorators(g2d);
        if (myShowSelection) {
          paintSelection(g2d);
        }
      }
    }
    catch (Throwable e) {
      myDesigner.showError(DesignerBundle.message("designer.error.paint.operation"), e);
    }
  }
@Override
  public void paint(Graphics g)