public static JComponent createErrorsLink(@NotNull Disposable parent) {
    IdeMessagePanel panel = new IdeMessagePanel(null, MessagePool.getInstance());
    panel.getComponent().setBorder(JBUI.Borders.emptyRight(13));
    Disposer.register(parent, panel);
    return panel.getComponent();
  }
public static JComponent createErrorsLink(@NotNull Disposable parent)