void (@NotNull PsiLabeledStatement statement) { final PsiLabeledStatement other = (PsiLabeledStatement)myMatchingVisitor.getElement(); final PsiIdentifier identifier = statement.getLabelIdentifier(); final MatchContext context = myMatchingVisitor.getMatchContext(); final boolean isTypedVar = context.getPattern().isTypedVar(identifier); context.pushResult(); try { myMatchingVisitor.setResult((isTypedVar || myMatchingVisitor.matchText(identifier, other.getNameIdentifier())) && myMatchingVisitor.match(statement.getStatement(), other.getStatement())); } finally { myMatchingVisitor.scopeMatch(identifier, isTypedVar, other.getNameIdentifier()); } }