class BaseViewPresenter {

    public void deleteItem(final FolderItem folderItem) {
        final Path path = getFolderItemPath(folderItem);

        validationService.call(messages -> {
            if (((List<ValidationMessage>) messages).isEmpty()) {
                showDeletePopup(folderItem);
            } else {
                validationPopup.showDeleteValidationMessages(() -> showDeletePopup(folderItem),
                                                             () -> {
                                                             },
                                                             (List<ValidationMessage>) messages);
            }
        }).validateForDelete(path);
    }

    public  BaseViewPresenter(BaseViewImpl baseView);

}