String (@NlsContexts.DialogTitle String title, String initialName) { return Messages.showInputDialog(CopyrightBundle.message("dialog.message.new.copyright.profile.name"), title, Messages.getQuestionIcon(), initialName, new InputValidator() { @Override public boolean checkInput(String s) { return !getAllProfiles().containsKey(s) && s.length() > 0; } @Override public boolean canClose(String s) { return checkInput(s); } }); }