void (@NotNull GrLabeledStatement labeledStatement) { super.visitLabeledStatement(labeledStatement); final String name = labeledStatement.getName(); GrLabeledStatement existing = ResolveUtil.resolveLabeledStatement(name, labeledStatement, true); if (existing != null && PsiTreeUtil.isAncestor(existing, labeledStatement, true)) { registerError(labeledStatement.getLabel(), name); } }