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