public static boolean showConfirmationDialog(@NotNull final Project project,final String message,final String title,final Icon logo,final String okActionMessage,final String cancelActionMessage){
  final int result=Messages.showYesNoDialog(project,message,title,okActionMessage,cancelActionMessage,logo);
  return result == 0 ? true : false;
}

public static boolean showConfirmationDialog ( @ NotNull final Project project , final String message , final String title , final Icon logo , final String okActionMessage , final String cancelActionMessage ) { final int result = Messages . showYesNoDialog ( project , message , title , okActionMessage , cancelActionMessage , logo ) ; return result == 0 ? true : false ; }
shows a dialog with ok and cancel actions to prompt for confirmation from user
