String (Project project, String message, String title, Icon icon, InputValidator validator) { if (isApplicationInUnitTestOrHeadless()) { return TestDialogManager.getTestInputImplementation().show(message, validator); } final InputDialog dialog = project != null ? new PasswordInputDialog(project, message, title, icon, validator) : new PasswordInputDialog(message, title, icon, validator); dialog.show(); return dialog.getInputString(); }