void (DomElementVisitor visitor, DomElement element) { final Method method = myMethods.get(element.getClass()); assert method != null : myVisitorClass + " can't accept element of type " + element.getClass(); DomReflectionUtil.invokeMethod(method, visitor, element); }