void (@NotNull PyMappingPattern mappingPattern) { List<PyDoubleStarPattern> starPatterns = PsiTreeUtil.getChildrenOfTypeAsList(mappingPattern, PyDoubleStarPattern.class); if (starPatterns.size() > 1) { for (PyDoubleStarPattern pattern : starPatterns.subList(1, starPatterns.size())) { markError(pattern, PyPsiBundle.message("ANN.patterns.repeated.star.pattern")); } } }