class UnanchoredStaticWorkbenchPanelPresenter extends AbstractWorkbenchPanelPresenter<UnanchoredStaticWorkbenchPanelPresenter> {

    @Override
    public void addPart(WorkbenchPartPresenter part) {
        SinglePartPanelHelper h = createSinglePartPanelHelper();
        if (h.hasNoParts()) {
            super.addPart(part);
        } else {
            h.closeFirstPartAndAddNewOne(() -> super.addPart(part));
        }
    }

    @Inject public  UnanchoredStaticWorkbenchPanelPresenter(@Named("UnanchoredStaticWorkbenchPanelView") final UnanchoredStaticWorkbenchPanelView view,
                                                   final PerspectiveManager perspectiveManager,
                                                   final PlaceManager placeManager);

}