public void setTitle(@NotNull @NlsContexts.BorderTitle String title) {
    mainPanel.setBorder(IdeBorderFactory.createTitledBorder(title));
  }
public void setTitle(@NotNull @NlsContexts.BorderTitle String title)