private @NotNull List<ActionItem> createInlineItems(@NotNull PresentationFactory presentationFactory,
                                                        @NotNull String actionPlace,
                                                        @Nullable List<? extends AnAction> inlineActions) {
      if (inlineActions == null) {
        return Collections.emptyList();
      }
      else {
        List<ActionItem> res = new ArrayList<>();
        for (AnAction a : inlineActions) {
          Presentation p = presentationFactory.getPresentation(a);
          if (!p.isVisible()) continue;
          ActionItem item = new ActionItem(a, null, false, false, maxIconWidth, maxIconHeight, false, null);
          item.updateFromPresentation(p, actionPlace);
          res.add(item);
        }
        return res.isEmpty() ? Collections.emptyList() : res;
      }
    }
private @NotNull List<ActionItem> createInlineItems(@NotNull PresentationFactory presentationFactory,
                                                        @NotNull String actionPlace,
                                                        @Nullable List<? extends AnAction> inlineActions)