void (@NlsContexts.DialogMessage String message) { String title = CommonBundle.getErrorTitle(); Icon icon = Messages.getErrorIcon(); if (myDialogParent != null) { Messages.showMessageDialog(myDialogParent, message, title, icon); } else { Messages.showMessageDialog(myProject, message, title, icon); } }