List<ResourceSetAvatarPopupWidgetFactoryAction> actionAdapters) {
// TODO refactor - is a widgetFactory really required here?
ResourceSetAvatarPopupWidgetFactory widgetFactory = new ResourceSetAvatarPopupWidgetFactory(
avatar.getText(), subHeaderText, actionAdapters, infoText,
resourceLabelModifiable ? new HeaderUpdatedEventHandler() {
@Override
public void headerLabelChanged(String newLabel) {
resources.setLabel(newLabel);
}
} : null);