private void addMessageFormatterOrColorizerToMenu(final JPopupMenu menu, final PluginableElement pluginable,
                                                    final PluginableElementsContainer selectedPluginableContainer) {
    {
      final JCheckBoxMenuItem boxMenuItem = new JCheckBoxMenuItem(pluginable.getName(), selectedPluginableContainer.contains(pluginable));
      boxMenuItem.setToolTipText(pluginable.getDescription());
      menu.add(boxMenuItem);
      boxMenuItem.addChangeListener(e -> {
        if (boxMenuItem.isSelected() && !selectedPluginableContainer.contains(pluginable)) {
          selectedPluginableContainer.addElement(pluginable);
        } else if (!boxMenuItem.isSelected() && selectedPluginableContainer.contains(pluginable)) {
          selectedPluginableContainer.removeElement(pluginable);
        }
      });
    }
  }
Set column size depending on configured display text/icon.
If the header is wider than contend, the width of header will be used.
olv-core/src/main/java/pl/otros/logview/gui/LogViewPanel.java