String (@NlsContexts.DialogTitle String title) { return Messages.showInputDialog(getNewLabelText(), title, Messages.getQuestionIcon(), "", new InputValidator() { @Override public boolean checkInput(String s) { return s.length() > 0 && findByName(s) == null && Verifier.checkElementName(s) == null; } @Override public boolean canClose(String s) { return checkInput(s); } }); }