void (PsiElement element, boolean isInsideHeader, List<? super Pair<Boolean, List<Integer>>> list, List<? super XmlTag> tags) { if (element instanceof XmlTag tag) { final String name = StringUtil.toLowerCase(tag.getLocalName()); if (THEAD.equals(name)) { isInsideHeader = true; } if (TD.equals(name) || TH.equals(name) || TR.equals(name) || TABLE.equals(name)) { list.add(new Pair<>(isInsideHeader, null)); tags.add(tag); } } for (PsiElement psiElement : element.getChildren()) { generateTableList(psiElement, isInsideHeader, list, tags); } }