void (@NotNull PyPatternArgumentList argumentList) { Set<String> usedAttrNames = new HashSet<>(); for (PyPattern attrPattern : argumentList.getPatterns()) { PyKeywordPattern keywordPattern = as(attrPattern, PyKeywordPattern.class); if (keywordPattern == null) { continue; } if (!usedAttrNames.add(keywordPattern.getKeyword())) { markError(keywordPattern.getKeywordElement(), PyPsiBundle.message("ANN.patterns.attribute.name.is.repeated", keywordPattern.getKeyword())); } } }