void (@NotNull JComponent component) { DataContext dataContext = myContext.get(); PresentationFactory presentationFactory = myPresentationFactory != null ? myPresentationFactory : new PresentationFactory(); List<PopupFactoryImpl.ActionItem> values = getValues(); Utils.updateComponentActions( component, ContainerUtil.map(values, PopupFactoryImpl.ActionItem::getAction), dataContext, myActionPlace, presentationFactory, () -> { for (PopupFactoryImpl.ActionItem actionItem : values) { Presentation presentation = presentationFactory.getPresentation(actionItem.getAction()); actionItem.updateFromPresentation(presentation, myActionPlace); for (PopupFactoryImpl.InlineActionItem inlineActionItem : actionItem.getInlineActions()) { presentation = presentationFactory.getPresentation(inlineActionItem.getAction()); inlineActionItem.updateFromPresentation(presentation, myActionPlace); } } } ); }