String () { SpellcheckerActionStatistics.ADD_TO_ACCEPTED_WORDS.log(manager.getProject()); String word = Messages.showInputDialog(SpellCheckerBundle.message("enter.simple.word"), SpellCheckerBundle.message("add.new.word"), null); if (word == null) { return null; } else { word = word.trim(); } if (Strings.isMixedCase(word)) { Messages.showWarningDialog(SpellCheckerBundle.message("entered.word.0.is.mixed.cased.you.must.enter.simple.word", word), SpellCheckerBundle.message("add.new.word")); return null; } if (!manager.hasProblem(word)) { Messages.showWarningDialog(SpellCheckerBundle.message("entered.word.0.is.correct.you.no.need.to.add.this.in.list", word), SpellCheckerBundle.message("add.new.word")); return null; } return word; }