void (PsiElement element, MatchingHandler handler) { if (handler instanceof DelegatingHandler) { handler = ((DelegatingHandler)handler).getDelegate(); } if (handler instanceof SubstitutionHandler){ pattern.putVariableNode(((SubstitutionHandler)handler).getName(), element); } }