boolean (PsiElement element) { MatchingHandler handler = myGlobalVisitor.getMatchContext().getPattern().getHandlerSimple(element); if (handler instanceof DelegatingHandler) { handler = ((DelegatingHandler)handler).getDelegate(); } return handler instanceof MySubstitutionHandler && ((MySubstitutionHandler)handler).myExceptedNodes.contains(element); }