int (@NlsContexts.DialogMessage String messageText) { if (ApplicationManager.getApplication().isUnitTestMode()) { return messageText.contains("dontMigrateName") ? 3 : 1; } else { return Messages.showIdeaMessageDialog(null, messageText, JavaRefactoringBundle.message("type.migration.action.name"), new String[]{ JavaBundle.message("type.migration.getter.rename.suggestion.always.migrate.method.names"), Messages.getYesButton(), JavaBundle.message("type.migration.getter.rename.suggestion.never.migrate.method.names"), Messages.getNoButton()}, 0, null, null); } }