class CloseUnsavedProjectAssetsPopUpPresenter {

    public void show(final WorkspaceProject project,
                     final List<PlaceRequest> uncloseablePlaces,
                     final Command proceedCallback,
                     final Command cancelCallback) {
        this.proceedCallback = proceedCallback;
        this.cancelCallback = cancelCallback;

        view.clearPlaces();
        uncloseablePlaces.forEach(place -> {

            final CloseUnsavedProjectAssetsPopUpListItemPresenter placeItem = closeUnsavedProjectAssetsPopUpListItemPresenters.get();
            placeItem.setup(getLabel(project, place));
            view.addPlace(placeItem.getView());
        });
        view.show(project.getName());
    }

    @Inject public  CloseUnsavedProjectAssetsPopUpPresenter(final CloseUnsavedProjectAssetsPopUpPresenter.View view,
                                                   final ManagedInstance<CloseUnsavedProjectAssetsPopUpListItemPresenter> closeUnsavedProjectAssetsPopUpListItemPresenters,
                                                   final TranslationService translationService);

}