boolean (PsiElement element) { final MatchingHandler handler = getMatchContext().getPattern().getHandler(element); return handler instanceof SubstitutionHandler && ((SubstitutionHandler)handler).getMinOccurs() == 0; }