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