void (@NotNull XmlTag tag) { super.visitXmlTag(tag); // there are a lot of implementations of XmlTag which we should be able to match myCompilingVisitor.setFilterSimple(tag, element -> element instanceof XmlTag); }