private static JPanel wrapPanelWithWarning(JPanel panel, @NlsContexts.DetailedDescription String warningText) {
    return UI.PanelFactory.panel(panel).withCommentIcon(AllIcons.General.Warning).withComment(warningText).createPanel();
  }
private static JPanel wrapPanelWithWarning(JPanel panel, @NlsContexts.DetailedDescription String warningText)