public static Reply confirm(
        @NotNull Shell shell,
        @NotNull String title,
        @NotNull String message,
        @NotNull Collection<?> selectedObjects,
        @Nullable NavigatorObjectsDeleter deleter
    ) {
        List<Reply> replies = new ArrayList<>(3);
        replies.add(Reply.YES);
        if (deleter != null && deleter.supportsShowViewScript()) {
            replies.add(SHOW_SCRIPT);
        }
        replies.add(Reply.CANCEL);

        final Reply[] reply = {null};
        MessageBoxBuilder messageBoxBuilder = MessageBoxBuilder.builder(shell)
            .setTitle(title)
            .setMessage(message)
            .setPrimaryImage(DBIcon.STATUS_WARNING)
            .setReplies(replies)
            .setDefaultReply(Reply.CANCEL)
            .setCustomArea(parent -> createCustomArea(parent, selectedObjects, deleter));
        UIUtils.syncExec(() -> reply[0] = messageBoxBuilder.showMessageBox());
        return reply[0];
    }
Asks the user if they want to delete navigator objects.

@param shell confirmation's parent shell
@param title confirmation's title
@param message confirmation's message
@param selectedObjects objects to delete
@param deleter deleter
@return user's reply
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/dialogs/NavigatorNodesDeletionConfirmations.java