protected void addSeenWord(HashSet<String> seenNames, String word, Language language) {
    final String lowerWord = StringUtil.toLowerCase(word);
    if (globalSeenNames.contains(lowerWord)) {
      return;
    }

    final NamesValidator namesValidator = LanguageNamesValidation.INSTANCE.forLanguage(language);
    if (namesValidator.isKeyword(word, myProject)) {
      return;
    }

    globalSeenNames.add(lowerWord);
    if (mySpellCheckerManager.hasProblem(lowerWord)) {
      seenNames.add(lowerWord);
    }
  }
protected void addSeenWord(HashSet<String> seenNames, String word, Language language)