private void calcMaxIconSize(@NotNull List<? extends AnAction> actions) {
    for (AnAction action : actions) {
      if (action instanceof Separator) {
        continue;
      }

      Presentation presentation = myPresentationFactory.getPresentation(action);
      Pair<Icon, Icon> icons = calcRawIcons(action, presentation, true);
      Icon icon = icons.first == null ? icons.second : icons.first;
      if (icon == null) {
        continue;
      }

      int width = icon.getIconWidth();
      int height = icon.getIconHeight();
      if (myMaxIconWidth < width) {
        myMaxIconWidth = width;
      }
      if (myMaxIconHeight < height) {
        myMaxIconHeight = height;
      }
    }
  }
private void calcMaxIconSize(@NotNull List<? extends AnAction> actions)